DirectionalLightShadowRenderer
with one split.@Deprecated public class BasicShadowRenderer extends java.lang.Object implements SceneProcessor
Modifier and Type | Field and Description |
---|---|
protected Texture2D |
dummyTex
Deprecated.
|
protected GeometryList |
lightReceivers
Deprecated.
|
protected GeometryList |
shadowOccluders
Deprecated.
|
Constructor and Description |
---|
BasicShadowRenderer(AssetManager manager,
int size)
Deprecated.
Creates a BasicShadowRenderer
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Deprecated.
Called when the SP is removed from the RM.
|
Vector3f |
getDirection()
Deprecated.
returns the light direction used for this processor
|
Picture |
getDisplayPicture()
Deprecated.
debug only
|
Vector3f[] |
getPoints()
Deprecated.
debug only
|
Camera |
getShadowCamera()
Deprecated.
debug only
returns the shadow camera
|
void |
initialize(RenderManager rm,
ViewPort vp)
Deprecated.
Called in the render thread to initialize the scene processor.
|
boolean |
isInitialized()
Deprecated.
|
void |
postFrame(FrameBuffer out)
Deprecated.
Called after a frame has been rendered and the queue flushed.
|
void |
postQueue(RenderQueue rq)
Deprecated.
Called after the scene graph has been queued, but before it is flushed.
|
void |
preFrame(float tpf)
Deprecated.
Called before a frame
|
void |
reshape(ViewPort vp,
int w,
int h)
Deprecated.
Called when the resolution of the viewport has been changed.
|
void |
setDirection(Vector3f direction)
Deprecated.
sets the light direction to use to compute shadows
|
void |
setProfiler(AppProfiler profiler)
Deprecated.
Sets a profiler Instance for this processor.
|
protected Texture2D dummyTex
protected GeometryList lightReceivers
protected GeometryList shadowOccluders
public BasicShadowRenderer(AssetManager manager, int size)
manager
- the asset managersize
- the size of the shadow map (the map is square)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 setProfiler(AppProfiler profiler)
SceneProcessor
setProfiler
in interface SceneProcessor
profiler
- the profiler instance.public void reshape(ViewPort vp, int w, int h)
SceneProcessor
reshape
in interface SceneProcessor