#include <light.h>
Public Member Functions | |
void | SetSegment (const Point &p1, float eps1, const Point &p2, float eps2, float time) |
void | SetRay (const Point &p, float eps, const Vector &w, float time) |
bool | Unoccluded (const Scene *scene) const |
Spectrum | Transmittance (const Scene *scene, const Renderer *renderer, const Sample *sample, RNG &rng, MemoryArena &arena) const |
Public Attributes | |
Ray | r |
Definition at line 77 of file light.h.
Definition at line 85 of file light.h.
References Assert, Ray::HasNaNs(), INFINITY, and r.
Referenced by InfiniteAreaLight::Sample_L(), and DistantLight::Sample_L().
void VisibilityTester::SetSegment | ( | const Point & | p1, | |
float | eps1, | |||
const Point & | p2, | |||
float | eps2, | |||
float | time | |||
) | [inline] |
Definition at line 79 of file light.h.
References Assert, Distance(), Ray::HasNaNs(), and r.
Referenced by SpotLight::Sample_L(), ProjectionLight::Sample_L(), PointLight::Sample_L(), GonioPhotometricLight::Sample_L(), and DiffuseAreaLight::Sample_L().
Spectrum VisibilityTester::Transmittance | ( | const Scene * | scene, | |
const Renderer * | renderer, | |||
const Sample * | sample, | |||
RNG & | rng, | |||
MemoryArena & | arena | |||
) | const |
Definition at line 43 of file light.cpp.
References r, and Renderer::Transmittance().
Referenced by EstimateDirect(), WhittedIntegrator::Li(), SingleScatteringIntegrator::Li(), and DipoleSubsurfaceIntegrator::Preprocess().
bool VisibilityTester::Unoccluded | ( | const Scene * | scene | ) | const |
Definition at line 38 of file light.cpp.
References Scene::IntersectP(), and r.
Referenced by EstimateDirect(), WhittedIntegrator::Li(), SingleScatteringIntegrator::Li(), DipoleSubsurfaceIntegrator::Preprocess(), and Light::SHProject().
Definition at line 92 of file light.h.
Referenced by SetRay(), SetSegment(), Transmittance(), and Unoccluded().