Arty
|
Simple point light, with intensity decreasing quadratically. More...
#include <lights.h>
Public Member Functions | |
PointLight (const float3 &p, const rgb &c) | |
DirectLightingSample | sample_direct (const float3 &, Sampler &) const override final |
Samples direct illumination from this light source at the given point on a surface. | |
EmissionSample | sample_emission (Sampler &sampler) const override final |
Samples the emitting surface of the light. | |
EmissionValue | emission (const float3 &, float, float) const override final |
Returns the emission of a light source (only for light sources with an area). | |
bool | has_area () const override final |
Returns true if the light has an area (i.e. can be hit by a ray). | |
Additional Inherited Members | |
![]() | |
EmissionSample | make_emission_sample (const float3 &pos, const float3 &dir, const rgb &intensity, float pdf_area, float pdf_dir, float cos) const |
DirectLightingSample | make_direct_sample (const float3 &pos, const rgb &intensity, float pdf_area, float pdf_dir, float cos) const |
Simple point light, with intensity decreasing quadratically.