material
Class LambertianEmitter

java.lang.Object
  extended by material.LambertianEmitter
All Implemented Interfaces:
IEmitter

public class LambertianEmitter
extends java.lang.Object
implements IEmitter


Field Summary
 IPainter radExPainter
           
 double scale
           
 
Constructor Summary
LambertianEmitter(IPainter radEx, double scale)
           
 
Method Summary
 void computeDirectLighting(IntersectionInfo intersection, IObject lumObject, RayState rs, Raycaster raycaster, IBSDF brdf, int numSamples, RGBColor amount)
           
 RGBColor emittedRadiance(IntersectionInfo ri, Vector3D out, Vector3D N)
          Flux per solid angle per unit projected area (Watt/m^2sr).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radExPainter

public IPainter radExPainter

scale

public double scale
Constructor Detail

LambertianEmitter

public LambertianEmitter(IPainter radEx,
                         double scale)
Parameters:
radEx - the radiant painter
scale - equal to the energy
Method Detail

emittedRadiance

public RGBColor emittedRadiance(IntersectionInfo ri,
                                Vector3D out,
                                Vector3D N)
Description copied from interface: IEmitter
Flux per solid angle per unit projected area (Watt/m^2sr).

Specified by:
emittedRadiance in interface IEmitter
Parameters:
ri - [in] intersection information
out - [in] outgoing vector from the surface of the luminary
N - [in] normal of the luminary
Returns:
the emitted radiance

computeDirectLighting

public void computeDirectLighting(IntersectionInfo intersection,
                                  IObject lumObject,
                                  RayState rs,
                                  Raycaster raycaster,
                                  IBSDF brdf,
                                  int numSamples,
                                  RGBColor amount)
Specified by:
computeDirectLighting in interface IEmitter
Parameters:
intersection - [in] info at the point of intersection
lumObject - [in] the object, which has this emitting property
rs - [in] actual state of the ray
raycaster - [in] caster to send a ray to the light
brdf - [in] the Bidirectional Scattering/Reflection Distribution Function
numSamples - [in] the number of rays to send to the light
amount - [in/out] the color is added to this