org.xith3d.render.states.units
Class FogStateUnit

java.lang.Object
  extended by org.xith3d.render.states.StateSortable
      extended by org.xith3d.render.states.StateUnit
          extended by org.xith3d.render.states.units.FogStateUnit

public class FogStateUnit
extends StateUnit

Insert package comments here Originally Coded by Benjamin Winters on Jul 24, 2004 at 7:56:34 PM. Based upon LightingShader class by David Yazel.


Field Summary
static int STATE_TYPE
           
 
Fields inherited from class org.xith3d.render.states.StateUnit
MAX_ATOM_TYPES, MAX_STATE_TYPES
 
Method Summary
 Fog getFog(int index)
           
 NodeComponent getNodeComponent()
          
 long getStateId()
          
 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.
static FogStateUnit makeFogStateUnit(InheritedNodeAttributes inheritedNodeAttribs)
           
 int numFogs()
           
 java.lang.String toString()
           
 void update()
           
 
Methods inherited from class org.xith3d.render.states.StateUnit
isDefault
 
Methods inherited from class org.xith3d.render.states.StateSortable
getCachedStateId, getStateType, updateCachedStateId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATE_TYPE

public static final int STATE_TYPE
Method Detail

numFogs

public final int numFogs()

getFog

public final Fog getFog(int index)

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

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()

makeFogStateUnit

public static FogStateUnit makeFogStateUnit(InheritedNodeAttributes inheritedNodeAttribs)