Enum Class TechniqueDef.LightMode

java.lang.Object
java.lang.Enum<TechniqueDef.LightMode>
com.jme3.material.TechniqueDef.LightMode
All Implemented Interfaces:
Serializable, Comparable<TechniqueDef.LightMode>, Constable
Enclosing class:
TechniqueDef

public static enum TechniqueDef.LightMode extends Enum<TechniqueDef.LightMode>
Describes light rendering mode.
  • Enum Constant Details

    • Disable

      public static final TechniqueDef.LightMode Disable
      Disable light-based rendering
    • SinglePass

      public static final TechniqueDef.LightMode SinglePass
      Enable light rendering by using a single pass.

      An array of light positions and light colors is passed to the shader containing the world light list for the geometry being rendered.

    • MultiPass

      public static final TechniqueDef.LightMode MultiPass
      Enable light rendering by using multi-pass rendering.

      The geometry will be rendered once for each light. Each time the light position and light color uniforms are updated to contain the values for the current light. The ambient light color uniform is only set to the ambient light color on the first pass, future passes have it set to black.

    • SinglePassAndImageBased

      public static final TechniqueDef.LightMode SinglePassAndImageBased
      Enable light rendering by using a single pass, and also uses Image based lighting for global lighting Usually used for PBR

      An array of light positions and light colors is passed to the shader containing the world light list for the geometry being rendered. Light probes are also passed to the shader.

    • FixedPipeline

      @Deprecated public static final TechniqueDef.LightMode FixedPipeline
      Deprecated.
      OpenGL1 is not supported anymore
    • StaticPass

      public static final TechniqueDef.LightMode StaticPass
      Similar to SinglePass except the type of each light is known at shader compile time.

      The advantage is that the shader can be much more efficient, i.e. not do operations required for spot and point lights if it knows the light is a directional light. The disadvantage is that the number of shaders used balloons because of the variations in the number of lights used by objects.

  • Method Details

    • values

      public static TechniqueDef.LightMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TechniqueDef.LightMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null