Module imp3d

Class IOR

All Implemented Interfaces:
Interior, Manageable, Shareable, Interior

public class IOR extends ShareableBase implements Interior
  • Field Details

    • $TYPE

      public static final IOR.Type $TYPE
    • indexOfRefraction$FIELD

      public static final SCOType.Field indexOfRefraction$FIELD
  • Constructor Details

    • IOR

      public IOR(float index)
    • IOR

      public IOR()
  • Method Details

    • getManageableType

      public ManageableType getManageableType()
      Specified by:
      getManageableType in interface Manageable
    • getIndexOfRefraction

      public float getIndexOfRefraction()
    • attenuate

      public void attenuate(Interior.Input in, Color3f outColor)
      Description copied from interface: Interior
      Calculates the attenuation of a light ray as it travels through this interior.
      Specified by:
      attenuate in interface Interior
      Parameters:
      in - the input data
      outColor - the outgoing color of the light ray will be placed in here
    • getIndexOfRefraction

      public float getIndexOfRefraction(Spectrum spectrum)
      Description copied from interface: Interior
      Returns the index of refraction of the interior. The computed index of refraction has to be averaged over the spectrum.
      Specified by:
      getIndexOfRefraction in interface Interior
      Parameters:
      spectrum - spectrum for which the average IOR has to be computed
      Returns:
      index of refraction