de.grogra.ray.light
Class Shadows

java.lang.Object
  extended by de.grogra.ray.light.Shadows
All Implemented Interfaces:
ShadowProcessor

public class Shadows
extends java.lang.Object
implements ShadowProcessor


Constructor Summary
Shadows(IntersectionProcessor processor)
           
 
Method Summary
 void setIntersectionProcessor(IntersectionProcessor processor)
           
 boolean shadowRay(Ray light, float length, Ray view, IntersectionDescription desc)
          Calculate to shadowed color of the light ray to the specified point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shadows

public Shadows(IntersectionProcessor processor)
Method Detail

setIntersectionProcessor

public void setIntersectionProcessor(IntersectionProcessor processor)

shadowRay

public boolean shadowRay(Ray light,
                         float length,
                         Ray view,
                         IntersectionDescription desc)
Description copied from interface: ShadowProcessor
Calculate to shadowed color of the light ray to the specified point.

Specified by:
shadowRay in interface ShadowProcessor
Returns:
True if the the light ray is totally shadowed.