java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp3d.shading.IOR
- All Implemented Interfaces:
Interior
,Manageable
,Shareable
,Interior
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface de.grogra.ray.physics.Interior
Interior.Input
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attenuate
(Interior.Input in, Color3f outColor) Calculates the attenuation of a light ray as it travels through this interior.float
float
getIndexOfRefraction
(Spectrum spectrum) Returns the index of refraction of the interior.Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
-
Field Details
-
$TYPE
-
indexOfRefraction$FIELD
-
-
Constructor Details
-
IOR
public IOR(float index) -
IOR
public IOR()
-
-
Method Details
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
-
getIndexOfRefraction
public float getIndexOfRefraction() -
attenuate
Description copied from interface:Interior
Calculates the attenuation of a light ray as it travels through this interior. -
getIndexOfRefraction
Description copied from interface:Interior
Returns the index of refraction of the interior. The computed index of refraction has to be averaged over thespectrum
.- Specified by:
getIndexOfRefraction
in interfaceInterior
- Parameters:
spectrum
- spectrum for which the average IOR has to be computed- Returns:
- index of refraction
-