|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.effects.shadows.ShadowFactory
public abstract class ShadowFactory
The ShadowFactory is capable if creating the shadow system environment.
| Nested Class Summary | |
|---|---|
static class |
ShadowFactory.ShadowFactoryIdentifier
|
| Constructor Summary | |
|---|---|
ShadowFactory()
|
|
| Method Summary | |
|---|---|
abstract org.openmali.types.twodee.Sized2iRO |
getLightViewport()
|
abstract ShadowAtom |
getShadowAtom(Node node)
This is called by the FrustumCuller, if a Node with occluder
has been detected within the frustum. |
abstract ShadowFactory.ShadowFactoryIdentifier |
getShadowFactoryId()
|
int |
getShadowQuality()
|
int |
getShadowSoftness()
|
int |
getShadowTextureUnit()
|
boolean |
isEnabled()
|
abstract boolean |
needsPerLightCulling()
|
abstract void |
onOccluderStateChanged(Node node,
boolean isOccluder)
This must be called from the scenegraph when a node's occluder state is changed. |
abstract 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 |
setShadowQuality(int quality)
|
void |
setShadowSoftness(int softness)
|
void |
setShadowTextureUnit(int unit)
Sets the texture-unit to use for the shadow map. |
abstract RenderPass |
setupRenderPass(View view,
Light light,
float viewportAspect,
RenderBin shadowBin,
long frameId,
boolean justForCulling)
|
abstract void |
verifyLight(Light light)
Checks, if the Light is accepted as "shadow caster". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShadowFactory()
| Method Detail |
|---|
public abstract ShadowFactory.ShadowFactoryIdentifier getShadowFactoryId()
public void setEnabled(boolean enabled)
setEnabled in interface org.jagatoo.datatypes.Enableablepublic final boolean isEnabled()
isEnabled in interface org.jagatoo.datatypes.Enableablepublic void setShadowTextureUnit(int unit)
unit - public final int getShadowTextureUnit()
public void setShadowQuality(int quality)
public final int getShadowQuality()
public abstract org.openmali.types.twodee.Sized2iRO getLightViewport()
public void setShadowSoftness(int softness)
public final int getShadowSoftness()
public abstract void verifyLight(Light light)
light - public abstract boolean needsPerLightCulling()
public abstract RenderPass setupRenderPass(View view,
Light light,
float viewportAspect,
RenderBin shadowBin,
long frameId,
boolean justForCulling)
public abstract ShadowAtom getShadowAtom(Node node)
FrustumCuller, if a Node with occluder
has been detected within the frustum.
node -
public abstract void onOccluderStateChanged(Node node,
boolean isOccluder)
node - isOccluder -
public abstract void onShadowReceiverStateChanged(Shape3D shape,
boolean isShadowReceiver)
shape - isShadowReceiver -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||