|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.effects.shadows.ShadowFactory
org.xith3d.effects.shadows.ShadowMappingFactory
public abstract class ShadowMappingFactory
This ShadowFactory is a base for any factory
realizing shadow-mapping.
| Nested Class Summary | |
|---|---|
static class |
ShadowMappingFactory.HackedRenderBinProvider
|
| Nested classes/interfaces inherited from class org.xith3d.effects.shadows.ShadowFactory |
|---|
ShadowFactory.ShadowFactoryIdentifier |
| Field Summary | |
|---|---|
static ShadowFactory.ShadowFactoryIdentifier |
SHADOW_FACTORY_ID
|
| Constructor Summary | |
|---|---|
ShadowMappingFactory()
|
|
| Method Summary | |
|---|---|
protected float |
calculateScreenScale()
|
protected void |
calculateTextureMatrix(float fovy,
float aspect,
float near,
float far,
Transform3D lightTransform,
Transform3D viewTransform,
Transform3D textureTransform)
|
TextureRenderTarget |
getDepthRenderTarget()
|
RenderPass |
getGenerationPass()
|
org.openmali.types.twodee.Sized2iRO |
getLightViewport()
|
ShadowMappingFactory.HackedRenderBinProvider |
getRenderBinProvider()
|
ShadowAtom |
getShadowAtom(Node node)
This is called by the FrustumCuller, if a Node with occluder
has been detected within the frustum. |
ShadowFactory.ShadowFactoryIdentifier |
getShadowFactoryId()
|
Texture2D |
getShadowMap()
|
TextureAttributes |
getShadowMapAttributes()
|
boolean |
needsPerLightCulling()
|
void |
onOccluderStateChanged(Node node,
boolean isOccluder)
This must be called from the scenegraph when a node's occluder state is changed. |
void |
setEnabled(boolean enabled)
|
void |
setShadowQuality(int quality)
|
RenderPass |
setupRenderPass(View view,
Light light,
float viewportAspect,
RenderBin shadowBin,
long frameId,
boolean justForCulling)
|
void |
verifyLight(Light light)
Checks, if the Light is accepted as "shadow caster". |
| Methods inherited from class org.xith3d.effects.shadows.ShadowFactory |
|---|
getShadowQuality, getShadowSoftness, getShadowTextureUnit, isEnabled, onShadowReceiverStateChanged, setShadowSoftness, setShadowTextureUnit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ShadowFactory.ShadowFactoryIdentifier SHADOW_FACTORY_ID
| Constructor Detail |
|---|
public ShadowMappingFactory()
| Method Detail |
|---|
public ShadowFactory.ShadowFactoryIdentifier getShadowFactoryId()
getShadowFactoryId in class ShadowFactorypublic TextureRenderTarget getDepthRenderTarget()
public ShadowMappingFactory.HackedRenderBinProvider getRenderBinProvider()
public RenderPass getGenerationPass()
protected float calculateScreenScale()
protected void calculateTextureMatrix(float fovy,
float aspect,
float near,
float far,
Transform3D lightTransform,
Transform3D viewTransform,
Transform3D textureTransform)
fovy - aspect - near - far - lightTransform - viewTransform - textureTransform -
public RenderPass setupRenderPass(View view,
Light light,
float viewportAspect,
RenderBin shadowBin,
long frameId,
boolean justForCulling)
setupRenderPass in class ShadowFactorypublic Texture2D getShadowMap()
public TextureAttributes getShadowMapAttributes()
public ShadowAtom getShadowAtom(Node node)
FrustumCuller, if a Node with occluder
has been detected within the frustum.
getShadowAtom in class ShadowFactorypublic void verifyLight(Light light)
verifyLight in class ShadowFactorypublic boolean needsPerLightCulling()
needsPerLightCulling in class ShadowFactorypublic void setShadowQuality(int quality)
setShadowQuality in class ShadowFactorypublic org.openmali.types.twodee.Sized2iRO getLightViewport()
getLightViewport in class ShadowFactory
public void onOccluderStateChanged(Node node,
boolean isOccluder)
onOccluderStateChanged in class ShadowFactorypublic void setEnabled(boolean enabled)
setEnabled in interface org.jagatoo.datatypes.EnableablesetEnabled in class ShadowFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||