- 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 ClassesModifier and TypeInterfaceDescriptionstatic final classThis class serves as input toattenuate(Input, Color3f). -
Method Summary
Modifier and TypeMethodDescriptionvoidattenuate(Interior.Input in, Color3f outColor) Calculates the attenuation of a light ray as it travels through this interior.floatgetIndexOfRefraction(Spectrum spectrum) Returns the index of refraction of the interior.
-
Method Details
-
getIndexOfRefraction
Returns the index of refraction of the interior. The computed index of refraction has to be averaged over thespectrum.- Parameters:
spectrum- spectrum for which the average IOR has to be computed- Returns:
- index of refraction
-
attenuate
Calculates the attenuation of a light ray as it travels through this interior.- Parameters:
in- the input dataoutColor- the outgoing color of the light ray will be placed in here
-