public static enum TechniqueDef.LightMode extends java.lang.Enum<TechniqueDef.LightMode>
Enum Constant and Description |
---|
Disable
Disable light-based rendering
|
FixedPipeline
Deprecated.
OpenGL1 is not supported anymore
|
MultiPass
Enable light rendering by using multi-pass rendering.
|
SinglePass
Enable light rendering by using a single pass.
|
SinglePassAndImageBased
Enable light rendering by using a single pass, and also uses Image based lighting for global lighting
Usually used for PBR
|
StaticPass
Similar to
SinglePass except the type of each light is known
at shader compile time. |
Modifier and Type | Method and Description |
---|---|
static TechniqueDef.LightMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TechniqueDef.LightMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TechniqueDef.LightMode Disable
public static final TechniqueDef.LightMode SinglePass
An array of light positions and light colors is passed to the shader containing the world light list for the geometry being rendered.
public static final TechniqueDef.LightMode MultiPass
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.
public static final TechniqueDef.LightMode SinglePassAndImageBased
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.
@Deprecated public static final TechniqueDef.LightMode FixedPipeline
public static final TechniqueDef.LightMode StaticPass
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.
public static TechniqueDef.LightMode[] values()
for (TechniqueDef.LightMode c : TechniqueDef.LightMode.values()) System.out.println(c);
public static TechniqueDef.LightMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null