Package com.ardor3d.scenegraph.hint
Enum Class LightCombineMode
- All Implemented Interfaces:
Serializable
,Comparable<LightCombineMode>
,Constable
Describes how to combine lights from ancestor LightStates.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCombine lights starting from the given Spatial and working up towards the root.Similar to CombineClosest, but if a disabled state is encountered, it will stop combining at that point.Combine lights starting from the root node and working towards the given Spatial.Inherit mode from parent.When updating render states, turn off lighting for this spatial.Do not combine lights, just use the most recent light state. -
Method Summary
Modifier and TypeMethodDescriptionstatic LightCombineMode
Returns the enum constant of this class with the specified name.static LightCombineMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Off
When updating render states, turn off lighting for this spatial. -
CombineFirst
Combine lights starting from the root node and working towards the given Spatial. Ignore disabled states. Stop combining when lights == MAX_LIGHTS_ALLOWED -
CombineClosest
Combine lights starting from the given Spatial and working up towards the root. Ignore disabled states. Stop combining when lights == MAX_LIGHTS_ALLOWED -
CombineClosestEnabled
Similar to CombineClosest, but if a disabled state is encountered, it will stop combining at that point. Stop combining when lights == MAX_LIGHTS_ALLOWED -
Inherit
Inherit mode from parent. -
Replace
Do not combine lights, just use the most recent light state.
-
-
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
-