|
||||||||||
| 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.VolumeShadowFactory
public class VolumeShadowFactory
The VolumeShadowFactory uses shadow volumes to generate shadows.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.effects.shadows.ShadowFactory |
|---|
ShadowFactory.ShadowFactoryIdentifier |
| Field Summary | |
|---|---|
static ShadowFactory.ShadowFactoryIdentifier |
SHADOW_FACTORY_ID
|
| Constructor Summary | |
|---|---|
VolumeShadowFactory()
|
|
| Method Summary | |
|---|---|
org.openmali.vecmath2.Point3f |
getLightSourcePosition()
|
org.openmali.types.twodee.Sized2iRO |
getLightViewport()
|
protected void |
getOccluderSubmission(Node node,
java.util.List<OccluderSubmission> list)
Calculates a list of the occluder shapes in the tree. |
ShadowAtom |
getShadowAtom(Node node)
This is called by the FrustumCuller, if a Node with occluder
has been detected within the frustum. |
ShadowFactory.ShadowFactoryIdentifier |
getShadowFactoryId()
|
boolean |
needsPerLightCulling()
|
void |
onOccluderStateChanged(Node node,
boolean isOccluder)
This must be called from the scenegraph when a node's occluder state is changed. |
void |
onShadowReceiverStateChanged(Shape3D shape,
boolean isShadowReceiver)
This must be called from the scenegraph when a shape's shadow-receiver state is changed. |
void |
setLightSourcePosition(org.openmali.vecmath2.Tuple3f pos)
|
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, setEnabled, setShadowQuality, 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 VolumeShadowFactory()
| Method Detail |
|---|
public ShadowFactory.ShadowFactoryIdentifier getShadowFactoryId()
getShadowFactoryId in class ShadowFactorypublic final void setLightSourcePosition(org.openmali.vecmath2.Tuple3f pos)
public final org.openmali.vecmath2.Point3f getLightSourcePosition()
public void verifyLight(Light light)
verifyLight in class ShadowFactorypublic boolean needsPerLightCulling()
needsPerLightCulling in class ShadowFactorypublic org.openmali.types.twodee.Sized2iRO getLightViewport()
getLightViewport in class ShadowFactory
public RenderPass setupRenderPass(View view,
Light light,
float viewportAspect,
RenderBin shadowBin,
long frameId,
boolean justForCulling)
setupRenderPass in class ShadowFactorypublic ShadowAtom getShadowAtom(Node node)
FrustumCuller, if a Node with occluder
has been detected within the frustum.
getShadowAtom in class ShadowFactory
protected final void getOccluderSubmission(Node node,
java.util.List<OccluderSubmission> list)
list -
public void onOccluderStateChanged(Node node,
boolean isOccluder)
onOccluderStateChanged in class ShadowFactory
public void onShadowReceiverStateChanged(Shape3D shape,
boolean isShadowReceiver)
onShadowReceiverStateChanged in class ShadowFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||