de.grogra.ray.physics
| Modifier and Type | Interface and Description |
|---|---|
static class |
Interior.Input
This class serves as input to
attenuate(Input, Color3f). |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void attenuate(Interior.Input in, Color3f outColor)
in - the input dataoutColor - the outgoing color of the light ray will be placed in herefloat getIndexOfRefraction(Spectrum spectrum)
spectrum.spectrum - spectrum for which the average IOR has to be computed