#include <lightshaders/DiffuseLightShader.h>
Inheritance diagram for DiffuseLightShader:

Public Member Functions | |
| DiffuseLightShader (const rgb &_power) | |
| rgb | emittedRadiance (const HitRecord &rec, Context &context) const |
The DiffuseLightShader class only emits light for directions where the dot product of the direction and the surface normal is positive.
|
||||||||||||
|
Used for area lights. The area light's surface has been intersected, so the shader should return the emitted radiance at the hit point in the direction ray came from.
Reimplemented from LightShader. |
1.4.3