Module raytracer

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 Details

    • prepareLightProcessor

      void prepareLightProcessor(RTScene scene, IntersectionProcessor intersectionProcessor)
    • 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