de.grogra.ray.light
Interface LightProcessor

All Known Implementing Classes:
DefaultLightProcessor

public interface LightProcessor

Interface that encapsulates the specific light calculation. It has the return all light/shadow ray that directly or indirectly illuminates a specific intersection point.

Author:
Micha

Method Summary
 int getLightRays(Ray view, IntersectionDescription desc, RayList rays)
          Adds lights/shadow rays that illuminalte the specified intersection point.
 void prepareLightProcessor(RTScene scene, IntersectionProcessor intersectionProcessor)
           
 

Method Detail

getLightRays

int getLightRays(Ray view,
                 IntersectionDescription desc,
                 RayList rays)
Adds lights/shadow rays that illuminalte the specified intersection point.

Parameters:
view -
desc - description object that specifies the intersection point
rays - all determined rays are added to this object
Returns:
number of rays that are added to the rays object

prepareLightProcessor

void prepareLightProcessor(RTScene scene,
                           IntersectionProcessor intersectionProcessor)