org.xith3d.render.states.units
Class LightingStateUnit
java.lang.Object
org.xith3d.render.states.StateSortable
org.xith3d.render.states.StateUnit
org.xith3d.render.states.units.LightingStateUnit
public class LightingStateUnit
- extends StateUnit
Insert package comments here
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STATE_TYPE
public static final int STATE_TYPE
getNodeComponent
public NodeComponent getNodeComponent()
-
- Specified by:
getNodeComponent in class StateUnit
isTranslucent
public final boolean isTranslucent()
- Because the rendering engine needs to deal with translucent geometry
differently the shader needs to be able to indicate whether it is
translucent or not.
- Specified by:
isTranslucent in class StateUnit
- Returns:
- true, if the Shader is translucent
numLights
public final int numLights()
getLight
public final Light getLight(int index)
getStateId
public final long getStateId()
-
- Specified by:
getStateId in class StateSortable
- Returns:
- the state ID used to sort the item
toString
public java.lang.String toString()
-
- Overrides:
toString in class java.lang.Object
update
public final void update()
makeLightingStateUnit
public static LightingStateUnit makeLightingStateUnit(InheritedNodeAttributes inheritedNodeAttribs)