material
Class IsotropicPhongSPF

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

public class IsotropicPhongSPF
extends java.lang.Object
implements ISPF

a brdf of a isotropic phong material


Constructor Summary
IsotropicPhongSPF(IPainter Rd, IPainter Rs, IPainter exp)
          constructor
 
Method Summary
 RGBColor getRayColor(IntersectionInfo intersection)
          returns the color of the ray at the intersection point
 void scatter(IntersectionInfo ri, ScatteredRayContainer scattered)
          generates a specular ray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsotropicPhongSPF

public IsotropicPhongSPF(IPainter Rd,
                         IPainter Rs,
                         IPainter exp)
constructor

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

getRayColor

public RGBColor getRayColor(IntersectionInfo intersection)
returns the color of the ray at the intersection point

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

scatter

public void scatter(IntersectionInfo ri,
                    ScatteredRayContainer scattered)
generates a specular ray

Specified by:
scatter in interface ISPF
Parameters:
ri - [in] specular ray
scattered - [in/out] container with the scattered rays