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 TypeMethodDescriptionvoidattenuate(Interior.Input in, Color3f outColor) Calculates the attenuation of a light ray as it travels through this interior.floatfloatgetIndexOfRefraction(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:
getManageableTypein interfaceManageable
-
getIndexOfRefraction
public float getIndexOfRefraction() -
attenuate
Description copied from interface:InteriorCalculates the attenuation of a light ray as it travels through this interior. -
getIndexOfRefraction
Description copied from interface:InteriorReturns the index of refraction of the interior. The computed index of refraction has to be averaged over thespectrum.- Specified by:
getIndexOfRefractionin interfaceInterior- Parameters:
spectrum- spectrum for which the average IOR has to be computed- Returns:
- index of refraction
-