Environment mapping.
More...
#include <envmap.h>
|
| Envmap (const BSphere &worldSphere, const Image &texmap, const Transform &lightToWorld, double scale, int numSamples=1) |
| The Envmap constructor. More...
|
|
| Envmap (RenderParams ¶ms) |
|
Spectrum | sampleLi (const Interaction &pObj, 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 | Le (const Ray &ray) const override |
|
Spectrum | power () const override |
|
Light * | clone () const override |
|
| Light (LightType type, const Transform &light2World, int numSamples=1) |
|
LightType | type () const |
|
virtual Spectrum | L (const Interaction &pLight, const Vector3d &dir) const |
|
virtual bool | isDelta () const |
|
bool | isArea () const |
|
|
const LightType | type_ |
|
const int | numSamples_ |
|
const Transform | lightToWorld_ |
|
const Transform | worldToLight_ |
|
spica::Envmap::Envmap |
( |
const BSphere & |
worldSphere, |
|
|
const Image & |
texmap, |
|
|
const Transform & |
lightToWorld, |
|
|
double |
scale, |
|
|
int |
numSamples = 1 |
|
) |
| |
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/envmap.h
- /home/travis/build/tatsy/spica/sources/lights/envmap.cc