org.xith3d.effects.shadows
Class GLSLShadowMappingFactory

java.lang.Object
  extended by org.xith3d.effects.shadows.ShadowFactory
      extended by org.xith3d.effects.shadows.ShadowMappingFactory
          extended by org.xith3d.effects.shadows.GLSLShadowMappingFactory
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable

public class GLSLShadowMappingFactory
extends ShadowMappingFactory

This ShadowFactory realizes shadow-mapping through GLSL.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.effects.shadows.ShadowMappingFactory
ShadowMappingFactory.HackedRenderBinProvider
 
Nested classes/interfaces inherited from class org.xith3d.effects.shadows.ShadowFactory
ShadowFactory.ShadowFactoryIdentifier
 
Field Summary
 
Fields inherited from class org.xith3d.effects.shadows.ShadowMappingFactory
SHADOW_FACTORY_ID
 
Constructor Summary
GLSLShadowMappingFactory()
           
 
Method Summary
protected  void calculateTextureMatrix(float fovy, float aspect, float near, float far, Transform3D lightTransform, Transform3D viewTransform, Transform3D textureTransform)
          
 void onShadowReceiverStateChanged(Shape3D shape, boolean isShadowReceiver)
          This must be called from the scenegraph when a shape's shadow-receiver state is changed.
 void setEnabled(boolean enabled)
          
 void setShadowSoftness(int softness)
          
 
Methods inherited from class org.xith3d.effects.shadows.ShadowMappingFactory
calculateScreenScale, getDepthRenderTarget, getGenerationPass, getLightViewport, getRenderBinProvider, getShadowAtom, getShadowFactoryId, getShadowMap, getShadowMapAttributes, needsPerLightCulling, onOccluderStateChanged, setShadowQuality, setupRenderPass, verifyLight
 
Methods inherited from class org.xith3d.effects.shadows.ShadowFactory
getShadowQuality, getShadowSoftness, getShadowTextureUnit, isEnabled, setShadowTextureUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLSLShadowMappingFactory

public GLSLShadowMappingFactory()
Method Detail

calculateTextureMatrix

protected void calculateTextureMatrix(float fovy,
                                      float aspect,
                                      float near,
                                      float far,
                                      Transform3D lightTransform,
                                      Transform3D viewTransform,
                                      Transform3D textureTransform)

Overrides:
calculateTextureMatrix in class ShadowMappingFactory

setShadowSoftness

public void setShadowSoftness(int softness)

Overrides:
setShadowSoftness in class ShadowFactory

onShadowReceiverStateChanged

public void onShadowReceiverStateChanged(Shape3D shape,
                                         boolean isShadowReceiver)
This must be called from the scenegraph when a shape's shadow-receiver state is changed.

Specified by:
onShadowReceiverStateChanged in class ShadowFactory

setEnabled

public void setEnabled(boolean enabled)

Specified by:
setEnabled in interface org.jagatoo.datatypes.Enableable
Overrides:
setEnabled in class ShadowMappingFactory