Class SoLightAttenuationElement


public class SoLightAttenuationElement extends SoReplacedElement
Stores the light attenuation(s) of the current environment. This element stores the light attenuation(s) of the current environment. This used to set up subsequent light sources. The attenuation is stored as an SbVec3f, where the first component of the vector is the quadratic term of the attenuation, the second is the linear term, and the third is the constant.

See Also:
  • Method Details

    • getClassStackIndex

      @Deprecated(since="9.3.0.0") public static int getClassStackIndex()
      Deprecated.
      As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)
      Returns the stack id for this element. ] *
    • getDefault

      public static SbVec3f getDefault()
      Returns the default light attenuation.
    • get

      public static SbVec3f get(SoState state)
      Returns the current light attenuation from the state.
    • set

      public static void set(SoState state, SoNode node, SbVec3f attenuation)
      Sets the current light attenuation(s).