Enum Class TechniqueDef.LightMode
- All Implemented Interfaces:
Serializable
,Comparable<TechniqueDef.LightMode>
,Constable
- Enclosing class:
- TechniqueDef
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDisable light-based renderingDeprecated.OpenGL1 is not supported anymoreEnable light rendering by using multi-pass rendering.Enable light rendering by using a single pass.Enable light rendering by using a single pass, and also uses Image based lighting for global lighting Usually used for PBRSimilar toSinglePass
except the type of each light is known at shader compile time. -
Method Summary
Modifier and TypeMethodDescriptionstatic TechniqueDef.LightMode
Returns the enum constant of this class with the specified name.static TechniqueDef.LightMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Disable
Disable light-based rendering -
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
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
Enable light rendering by using a single pass, and also uses Image based lighting for global lighting Usually used for PBRAn 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.OpenGL1 is not supported anymore -
StaticPass
Similar toSinglePass
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
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
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 nameNullPointerException
- if the argument is null
-