|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.shadow.BasicShadowRenderer
public class BasicShadowRenderer
BasicShadowRenderer uses standard shadow mapping with one map it's useful to render shadows in a small scene, but edges might look a bit jagged.
Constructor Summary | |
---|---|
BasicShadowRenderer(AssetManager manager,
int size)
Creates a BasicShadowRenderer |
Method Summary | |
---|---|
void |
cleanup()
Called when the SP is removed from the RM. |
Vector3f |
getDirection()
returns the light direction used for this processor |
Picture |
getDisplayPicture()
debug only |
Vector3f[] |
getPoints()
debug only |
Camera |
getShadowCamera()
debug only returns the shadow camera |
void |
initialize(RenderManager rm,
ViewPort vp)
Called in the render thread to initialize the scene processor. |
boolean |
isInitialized()
|
void |
postFrame(FrameBuffer out)
Called after a frame has been rendered and the queue flushed. |
void |
postQueue(RenderQueue rq)
Called after the scene graph has been queued, but before it is flushed. |
void |
preFrame(float tpf)
Called before a frame |
void |
reshape(ViewPort vp,
int w,
int h)
Called when the resolution of the viewport has been changed. |
void |
setDirection(Vector3f direction)
sets the light direction to use to computs shadows |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicShadowRenderer(AssetManager manager, int size)
manager
- the asset managersize
- the size of the shadow map (the map is square)Method Detail |
---|
public void initialize(RenderManager rm, ViewPort vp)
SceneProcessor
initialize
in interface SceneProcessor
rm
- The render manager to which the SP was added tovp
- The viewport to which the SP is assignedpublic boolean isInitialized()
isInitialized
in interface SceneProcessor
public Vector3f getDirection()
public void setDirection(Vector3f direction)
direction
- public Vector3f[] getPoints()
public Camera getShadowCamera()
public void postQueue(RenderQueue rq)
SceneProcessor
postQueue
in interface SceneProcessor
rq
- The render queuepublic Picture getDisplayPicture()
public void postFrame(FrameBuffer out)
SceneProcessor
postFrame
in interface SceneProcessor
out
- The FB to which the scene was rendered.public void preFrame(float tpf)
SceneProcessor
preFrame
in interface SceneProcessor
tpf
- Time per framepublic void cleanup()
SceneProcessor
cleanup
in interface SceneProcessor
public void reshape(ViewPort vp, int w, int h)
SceneProcessor
reshape
in interface SceneProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |