com.jme.renderer.pass
Class ProximityShadowGate

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

public class ProximityShadowGate
extends java.lang.Object
implements ShadowGate


Constructor Summary
ProximityShadowGate(Camera cam, float distance)
           
 
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

ProximityShadowGate

public ProximityShadowGate(Camera cam,
                           float distance)
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.