org.xith3d.effects.shadows
Class GLSLShadowMappingFactory
java.lang.Object
org.xith3d.effects.shadows.ShadowFactory
org.xith3d.effects.shadows.ShadowMappingFactory
org.xith3d.effects.shadows.GLSLShadowMappingFactory
- All Implemented Interfaces:
- org.jagatoo.datatypes.Enableable
public class GLSLShadowMappingFactory
- extends ShadowMappingFactory
This ShadowFactory realizes shadow-mapping through GLSL.
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLSLShadowMappingFactory
public GLSLShadowMappingFactory()
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