Module raytracer

Interface ShadowProcessor

All Known Implementing Classes:
NoShadows, Shadows

public interface ShadowProcessor
A ShadowProcessor have to decide wether a possibly light/shadow ray realy illuminates the specified intersection point. This interface makes shadow calculations exchangeable.
Author:
Micha
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    shadowRay(Ray light, float length, Ray view, IntersectionDescription desc)
    Calculate to shadowed color of the light ray to the specified point.
  • Method Details

    • shadowRay

      boolean shadowRay(Ray light, float length, Ray view, IntersectionDescription desc)
      Calculate to shadowed color of the light ray to the specified point.
      Parameters:
      ray -
      Returns:
      True if the the light ray is totally shadowed.