Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

DiffuseLightShader Class Reference

LightShader that emits light uniformly from a surface. More...

#include <lightshaders/DiffuseLightShader.h>

Inheritance diagram for DiffuseLightShader:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DiffuseLightShader (const rgb &_power)
rgb emittedRadiance (const HitRecord &rec, Context &context) const

Detailed Description

LightShader that emits light uniformly from a surface.

The DiffuseLightShader class only emits light for directions where the dot product of the direction and the surface normal is positive.


Member Function Documentation

rgb DiffuseLightShader::emittedRadiance const HitRecord rec,
Context context
const [virtual]
 

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.

Parameters:
[in] rec HitRecord describing the hit point on the luminaire.
[in] context Rendering Context containing the ray data.
Returns:
rgb value representing the emitted radiance.

Reimplemented from LightShader.


The documentation for this class was generated from the following files:
Generated on Wed Jul 20 16:15:22 2005 for galileo by  doxygen 1.4.3