Module raytracer

Interface Interior

All Known Subinterfaces:
Interior
All Known Implementing Classes:
IOR

public interface Interior
An Interior instance represents the interior of a solid object. The interior defines the index of refraction and is responsible for light ray attenuation.
Author:
Ole Kniemeyer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    This class serves as input to attenuate(Input, Color3f).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Calculates the attenuation of a light ray as it travels through this interior.
    float
    Returns the index of refraction of the interior.
  • Method Details

    • getIndexOfRefraction

      float getIndexOfRefraction(Spectrum spectrum)
      Returns the index of refraction of the interior. The computed index of refraction has to be averaged over the spectrum.
      Parameters:
      spectrum - spectrum for which the average IOR has to be computed
      Returns:
      index of refraction
    • attenuate

      void attenuate(Interior.Input in, Color3f outColor)
      Calculates the attenuation of a light ray as it travels through this interior.
      Parameters:
      in - the input data
      outColor - the outgoing color of the light ray will be placed in here