material
Class IsotropicPhongBRDF

java.lang.Object
  extended by material.IsotropicPhongBRDF
All Implemented Interfaces:
IBSDF

public class IsotropicPhongBRDF
extends java.lang.Object
implements IBSDF

brdf of a isotropic phong material


Constructor Summary
IsotropicPhongBRDF(IPainter Rd, IPainter Rs, IPainter exp)
          constructor, creates the brdf
 
Method Summary
 RGBColor value(Vector3D vLightIn, IntersectionInfo intersection)
          return actual BRDF value as a RGB value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsotropicPhongBRDF

public IsotropicPhongBRDF(IPainter Rd,
                          IPainter Rs,
                          IPainter exp)
constructor, creates the brdf

Parameters:
Rd - [in] diffuse reflection
Rs - [in] specular reflection
exp - [in] the phong exponent
Method Detail

value

public RGBColor value(Vector3D vLightIn,
                      IntersectionInfo intersection)
return actual BRDF value as a RGB value

Specified by:
value in interface IBSDF
Parameters:
vLightIn - [in] vector of the incoming light
intersection - [in] intersection details for point of intersection
Returns:
the color at the intersection