material
Class LambertianSPF
java.lang.Object
material.LambertianSPF
- All Implemented Interfaces:
- ISPF
public class LambertianSPF
- extends java.lang.Object
- implements ISPF
spf of a lambertian material
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reflectance
public IPainter reflectance
LambertianSPF
public LambertianSPF(IPainter reflectance)
- constructor
- Parameters:
reflectance
- [in] diffuse reflection
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 intersectionscattered
- [in/out] container with the scattered rays