|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TechniqueDef.LightMode>
com.jme3.material.TechniqueDef.LightMode
public static enum TechniqueDef.LightMode
Describes light rendering mode.
Enum Constant Summary | |
---|---|
Disable
Disable light-based rendering |
|
FixedPipeline
Enable light rendering by using the renderer's setLighting
method. |
|
MultiPass
Enable light rendering by using multi-pass rendering. |
|
SinglePass
Enable light rendering by using a single pass. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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 FixedPipeline
renderer's setLighting
method.
The specific details of rendering the lighting is up to the renderer implementation.
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |