Area light class.
More...
#include <area.h>
|
| AreaLight (const std::shared_ptr< Shape > &shape, const Transform &lightToWorld, const Spectrum &Lemit, int numSamples=1) |
|
| AreaLight (RenderParams ¶ms) |
|
Spectrum | L (const Interaction &pLight, const Vector3d &dir) const override |
|
Spectrum | sampleLi (const Interaction &isect, const Point2d &rands, Vector3d *dir, double *pdf, VisibilityTester *vis) const override |
| Sample incident radiance (Li) at the intersecting point. More...
|
|
double | pdfLi (const Interaction &pObj, const Vector3d &dir) const override |
| Compute PDF for the incident direction. More...
|
|
Spectrum | sampleLe (const Point2d &rand1, const Point2d &rand2, Ray *ray, Normal3d *nLight, double *pdfPos, double *pdfDir) const override |
|
void | pdfLe (const Ray &ray, const Normal3d &nLight, double *pdfPos, double *pdfDir) const override |
|
Spectrum | power () const override |
|
Light * | clone () const override |
|
double | area () const |
|
| Light (LightType type, const Transform &light2World, int numSamples=1) |
|
LightType | type () const |
|
virtual Spectrum | Le (const Ray &ray) const |
|
virtual bool | isDelta () const |
|
bool | isArea () const |
|
|
std::shared_ptr< Shape > | shape_ |
|
const Spectrum | Lemit_ |
|
const LightType | type_ |
|
const int | numSamples_ |
|
const Transform | lightToWorld_ |
|
const Transform | worldToLight_ |
|
Compute PDF for the incident direction.
- Parameters
-
[in] | isect | The intersecting point. |
[in] | inDir | Incident direction. |
- Returns
- PDF (probability density).
Implements spica::Light.
Sample incident radiance (Li) at the intersecting point.
- Parameters
-
[in] | pObj | The intersecting point. |
[in] | rands | A pair of real random numbers. |
- Returns
- Sampled incident randiance.
Implements spica::Light.
The documentation for this class was generated from the following files:
- /home/travis/build/tatsy/spica/sources/lights/area.h
- /home/travis/build/tatsy/spica/sources/lights/area.cc