com.jme.renderer.pass
Class DefaultShadowGate

java.lang.Object
  extended by com.jme.renderer.pass.DefaultShadowGate
All Implemented Interfaces:
ShadowGate

public class DefaultShadowGate
extends java.lang.Object
implements ShadowGate


Constructor Summary
DefaultShadowGate()
           
 
Method Summary
 boolean shouldDrawShadows(TriMesh mesh)
          Give a hint to the shadow render pass as to whether a given triangle mesh is a candidate for shadow drawing.
 boolean shouldUpdateShadows(TriMesh mesh)
          Give a hint to the shadow render pass as to whether a given triangle mesh is a candidate for shadow updates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultShadowGate

public DefaultShadowGate()
Method Detail

shouldDrawShadows

public boolean shouldDrawShadows(TriMesh mesh)
Description copied from interface: ShadowGate
Give a hint to the shadow render pass as to whether a given triangle mesh is a candidate for shadow drawing. This hint will be combined with other hints such as locking.

Specified by:
shouldDrawShadows in interface ShadowGate
Parameters:
mesh - the mesh to check
Returns:
true if we think this mesh's shadows are ok to draw

shouldUpdateShadows

public boolean shouldUpdateShadows(TriMesh mesh)
Description copied from interface: ShadowGate
Give a hint to the shadow render pass as to whether a given triangle mesh is a candidate for shadow updates. This hint will be combined with other hints such as locking.

Specified by:
shouldUpdateShadows in interface ShadowGate
Parameters:
mesh - the mesh to check
Returns:
true if we think this mesh's shadows are ok to test for an update.