de.grogra.ray.physics
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
static class Interior.Input
          This class serves as input to attenuate(Input, Color3f).
 
Method Summary
 void attenuate(Interior.Input in, Color3f outColor)
          Calculates the attenuation of a light ray as it travels through this interior.
 float getIndexOfRefraction(Spectrum spectrum)
          Returns the index of refraction of the interior.
 

Method Detail

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

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