material
Interface ISPF

All Known Implementing Classes:
DielectricSPF, IsotropicPhongSPF, LambertianSPF, PerfectReflectorSPF

public interface ISPF

interface for the Scattering Probability Function


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.
 

Method Detail

scatter

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.

Parameters:
intersection - [in] information of the point of intersection
scattered - [in/out] container with the scattered rays

getRayColor

RGBColor getRayColor(IntersectionInfo intersection)
returns the color at intersection point

Parameters:
intersection - [in] information of the point of intersection
Returns:
the color at the intersection