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)
SceneProcessorinitialize in interface SceneProcessorrm - The render manager to which the SP was added tovp - The viewport to which the SP is assignedpublic boolean isInitialized()
isInitialized in interface SceneProcessorpublic Vector3f getDirection()
public void setDirection(Vector3f direction)
direction - a direction vector (not null, unaffected)public Vector3f[] getPoints()
public Camera getShadowCamera()
public void postQueue(RenderQueue rq)
SceneProcessorpostQueue in interface SceneProcessorrq - The render queuepublic Picture getDisplayPicture()
public void postFrame(FrameBuffer out)
SceneProcessorpostFrame in interface SceneProcessorout - The FB to which the scene was rendered.public void preFrame(float tpf)
SceneProcessorpreFrame in interface SceneProcessortpf - Time per framepublic void cleanup()
SceneProcessorcleanup in interface SceneProcessorpublic void setProfiler(AppProfiler profiler)
SceneProcessorsetProfiler in interface SceneProcessorprofiler - the profiler instance.public void reshape(ViewPort vp, int w, int h)
SceneProcessorreshape in interface SceneProcessorvp - the affected ViewPortw - the new width (in pixels)h - the new height (in pixels)