#include <point.h>

Public Member Functions | |
| PointLight (const Transform &light2world, const Spectrum &le, float gain) | |
| ~PointLight () | |
| SWCSpectrum | Sample_L (const Point &p, Vector *wi, VisibilityTester *vis) const |
| SWCSpectrum | Power (const Scene *) const |
| bool | IsDeltaLight () const |
| SWCSpectrum | Sample_L (const Point &P, float u1, float u2, float u3, Vector *wo, float *pdf, VisibilityTester *visibility) const |
| SWCSpectrum | Sample_L (const Scene *scene, float u1, float u2, float u3, float u4, Ray *ray, float *pdf) const |
| float | Pdf (const Point &, const Vector &) const |
Static Public Member Functions | |
| static Light * | CreateLight (const Transform &light2world, const ParamSet ¶mSet) |
Private Attributes | |
| Point | lightPos |
| SPD * | LSPD |
Definition at line 32 of file lights/point.h.
Definition at line 31 of file point.cpp.
References lightPos, lux::Light::LightToWorld, LSPD, and lux::SPD::Scale().
Referenced by CreateLight().
| lux::PointLight::~PointLight | ( | ) | [inline] |
| Light * PointLight::CreateLight | ( | const Transform & | light2world, | |
| const ParamSet & | paramSet | |||
| ) | [static] |
Definition at line 62 of file point.cpp.
References lux::ParamSet::FindOneFloat(), lux::ParamSet::FindOnePoint(), lux::ParamSet::FindOneSpectrum(), blender::g, PointLight(), lux::Translate(), lux::Point::x, lux::Point::y, and lux::Point::z.
Referenced by lux::MakeLight().
| bool lux::PointLight::IsDeltaLight | ( | ) | const [inline, virtual] |
| SWCSpectrum lux::PointLight::Power | ( | const Scene * | ) | const [inline, virtual] |
| SWCSpectrum PointLight::Sample_L | ( | const Scene * | scene, | |
| float | u1, | |||
| float | u2, | |||
| float | u3, | |||
| float | u4, | |||
| Ray * | ray, | |||
| float * | ||||
| ) | const [virtual] |
Implements lux::Light.
Definition at line 54 of file point.cpp.
References lux::Ray::d, lightPos, LSPD, lux::Ray::o, lux::UniformSampleSphere(), and lux::UniformSpherePdf().
| SWCSpectrum PointLight::Sample_L | ( | const Point & | P, | |
| float | u1, | |||
| float | u2, | |||
| float | u3, | |||
| Vector * | wo, | |||
| float * | pdf, | |||
| VisibilityTester * | visibility | |||
| ) | const [virtual] |
| SWCSpectrum PointLight::Sample_L | ( | const Point & | p, | |
| Vector * | wi, | |||
| VisibilityTester * | vis | |||
| ) | const [virtual] |
Implements lux::Light.
Definition at line 39 of file point.cpp.
References lux::DistanceSquared(), lightPos, LSPD, lux::Normalize(), and lux::VisibilityTester::SetSegment().
Referenced by Sample_L().
Point lux::PointLight::lightPos [private] |
SPD* lux::PointLight::LSPD [private] |
Definition at line 53 of file lights/point.h.
Referenced by PointLight(), Power(), Sample_L(), and ~PointLight().
1.5.9