material
Class LambertianSPF

java.lang.Object
  extended by material.LambertianSPF
All Implemented Interfaces:
ISPF

public class LambertianSPF
extends java.lang.Object
implements ISPF

spf of a lambertian material


Field Summary
 IPainter reflectance
           
 
Constructor Summary
LambertianSPF(IPainter reflectance)
          constructor
 
Method Summary
 RGBColor getRayColor(IntersectionInfo intersection)
          returns the color at intersection point
 void scatter(IntersectionInfo intersection, ScatteredRayContainer scattered)
          Given parameters describing the intersection of a ray with a surface, this will return the reflected and transmitted rays along with attenuation factors.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reflectance

public IPainter reflectance
Constructor Detail

LambertianSPF

public LambertianSPF(IPainter reflectance)
constructor

Parameters:
reflectance - [in] diffuse reflection
Method Detail

getRayColor

public RGBColor getRayColor(IntersectionInfo intersection)
Description copied from interface: ISPF
returns the color at intersection point

Specified by:
getRayColor in interface ISPF
Parameters:
intersection - [in] information of the point of intersection
Returns:
the color at the intersection

scatter

public void scatter(IntersectionInfo intersection,
                    ScatteredRayContainer scattered)
Description copied from interface: ISPF
Given parameters describing the intersection of a ray with a surface, this will return the reflected and transmitted rays along with attenuation factors.

Specified by:
scatter in interface ISPF
Parameters:
intersection - [in] information of the point of intersection
scattered - [in/out] container with the scattered rays