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

SpectralLight Class Reference

A LightShader that emits different radiance values based on wavelength. More...

#include <lightshaders/SpectralLight.h>

Inheritance diagram for SpectralLight:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 SpectralLight (const char *filename)
rgb emittedRadiance (const HitRecord &rec, Context &context) const

Detailed Description

A LightShader that emits different radiance values based on wavelength.


Member Function Documentation

rgb SpectralLight::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:27 2005 for galileo by  doxygen 1.4.3