org.xith3d.effects.shadows
Class FixedFuncShadowMappingFactory

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

public class FixedFuncShadowMappingFactory
extends ShadowMappingFactory

This ShadowFactory realizes shadow-mapping through the fixed-function pipeline of OpenGL.


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
FixedFuncShadowMappingFactory()
           
 
Method Summary
static TexCoordGeneration getTexCoordGeneration()
           
 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, calculateTextureMatrix, 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

FixedFuncShadowMappingFactory

public FixedFuncShadowMappingFactory()
Method Detail

getTexCoordGeneration

public static TexCoordGeneration getTexCoordGeneration()
Returns:
the (cached) TexCoordGeneration that calculates the texture-coordinates for shadow-mapping.
Throws:
java.io.IOException

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