@Deprecated public class PssmShadowRenderer extends java.lang.Object implements SceneProcessor
| Modifier and Type | Class and Description | 
|---|---|
| static class  | PssmShadowRenderer.CompareModeDeprecated. 
 use  CompareMode | 
| static class  | PssmShadowRenderer.FilterModeDeprecated. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | applyFadeInfoDeprecated.  | 
| protected boolean | applyFilterModeDeprecated.  | 
| protected boolean | applyHWShadowsDeprecated.  | 
| protected boolean | applyPCFEdgeDeprecated.  | 
| protected boolean | applyShadowIntensityDeprecated.  | 
| protected AssetManager | assetManagerDeprecated.  | 
| protected PssmShadowRenderer.CompareMode | compareModeDeprecated.  | 
| protected boolean | debugDeprecated.  | 
| protected Vector3f | directionDeprecated.  | 
| protected Picture[] | dispPicDeprecated.  | 
| protected Texture2D | dummyTexDeprecated.  | 
| protected float | edgesThicknessDeprecated.  | 
| protected Vector2f | fadeInfoDeprecated.  | 
| protected float | fadeLengthDeprecated.  | 
| protected PssmShadowRenderer.FilterMode | filterModeDeprecated.  | 
| protected boolean | flushQueuesDeprecated.  | 
| protected float | lambdaDeprecated.  | 
| protected GeometryList | lightReceiversDeprecated.  | 
| protected Matrix4f[] | lightViewProjectionsMatricesDeprecated.  | 
| protected java.util.List<Material> | matCacheDeprecated.  | 
| protected int | nbSplitsDeprecated.  | 
| protected boolean | needsfallBackMaterialDeprecated.  | 
| protected boolean | noOccludersDeprecated.  | 
| protected Vector3f[] | pointsDeprecated.  | 
| protected Material | postshadowMatDeprecated.  | 
| protected java.lang.String | postTechniqueNameDeprecated.  | 
| protected Material | preshadowMatDeprecated.  | 
| protected RenderManager | renderManagerDeprecated.  | 
| protected Camera | shadowCamDeprecated.  | 
| protected FrameBuffer[] | shadowFBDeprecated.  | 
| protected float | shadowIntensityDeprecated.  | 
| protected Texture2D[] | shadowMapsDeprecated.  | 
| protected float | shadowMapSizeDeprecated.  | 
| protected GeometryList | splitOccludersDeprecated.  | 
| protected ColorRGBA | splitsDeprecated.  | 
| protected float[] | splitsArrayDeprecated.  | 
| protected ViewPort | viewPortDeprecated.  | 
| protected float | zFarOverrideDeprecated.  | 
| Modifier | Constructor and Description | 
|---|---|
|   | PssmShadowRenderer(AssetManager manager,
                  int size,
                  int nbSplits)Deprecated.  Create a PSSM Shadow Renderer More info on the technique at http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html | 
| protected  | PssmShadowRenderer(AssetManager manager,
                  int size,
                  int nbSplits,
                  Material postShadowMat)Deprecated.  Create a PSSM Shadow Renderer More info on the technique at http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanup()Deprecated.  Called when the SP is removed from the RM. | 
| void | displayDebug()Deprecated.  For debugging purpose Allow to "snapshot" the current frustum to the
 scene | 
| void | displayFrustum()Deprecated.  | 
| protected void | displayShadowMap(Renderer r)Deprecated.  | 
| Vector3f | getDirection()Deprecated.  returns the light direction used by the processor | 
| int | getEdgesThickness()Deprecated.  returns the edges thickness | 
| float | getLambda()Deprecated.  returns the lambda parameter see #setLambda(float lambda) | 
| float | getShadowIntensity()Deprecated.  returns the shadow intensity | 
| float | getShadowZExtend()Deprecated.  How far the shadows are rendered in the view | 
| float | getShadowZFadeLength()Deprecated.  get the length over which the shadow will fade out when using a
 shadowZextend | 
| void | initialize(RenderManager rm,
          ViewPort vp)Deprecated.  Called in the render thread to initialize the scene processor. | 
| boolean | isFlushQueues()Deprecated.  returns true if the PssmRenderer flushed the shadow queues | 
| 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 | setCompareMode(PssmShadowRenderer.CompareMode compareMode)Deprecated.  sets the shadow compare mode see  CompareModefor more info | 
| void | setDirection(Vector3f direction)Deprecated.  Sets the light direction to use to compute shadows | 
| void | setEdgesThickness(int edgesThickness)Deprecated.  Sets the shadow edges thickness. | 
| void | setFilterMode(PssmShadowRenderer.FilterMode filterMode)Deprecated.  Sets the filtering mode for shadow edges see  PssmShadowRenderer.FilterModefor more
 info | 
| void | setFlushQueues(boolean flushQueues)Deprecated.  Set this to false if you want to use several PssmRenderers to have
 multiple shadows cast by multiple light sources. | 
| void | setLambda(float lambda)Deprecated.  Adjusts the partition of the shadow extend into shadow maps. | 
| protected void | setPostShadowParams()Deprecated.  | 
| void | setProfiler(AppProfiler profiler)Deprecated.  Sets a profiler Instance for this processor. | 
| void | setShadowIntensity(float shadowIntensity)Deprecated.  Set the shadowIntensity, the value should be between 0 and 1, a 0 value
 gives a bright and invisible shadow, a 1 value gives a pitch black
 shadow, default is 0.7 | 
| void | setShadowZExtend(float zFar)Deprecated.  Set the distance from the eye where the shadows will be rendered default
 value is dynamically computed to the shadow casters/receivers union bound
 zFar, capped to view frustum far value. | 
| void | setShadowZFadeLength(float length)Deprecated.  Define the length over which the shadow will fade out when using a
 shadowZextend This is useful to make dynamic shadows fade into baked
 shadows in the distance. | 
protected int nbSplits
protected float shadowMapSize
protected float lambda
protected float shadowIntensity
protected float zFarOverride
protected RenderManager renderManager
protected ViewPort viewPort
protected FrameBuffer[] shadowFB
protected Texture2D[] shadowMaps
protected Texture2D dummyTex
protected Camera shadowCam
protected Material preshadowMat
protected Material postshadowMat
protected GeometryList splitOccluders
protected Matrix4f[] lightViewProjectionsMatrices
protected ColorRGBA splits
protected float[] splitsArray
protected boolean noOccluders
protected Vector3f direction
protected AssetManager assetManager
protected boolean debug
protected float edgesThickness
protected PssmShadowRenderer.FilterMode filterMode
protected PssmShadowRenderer.CompareMode compareMode
protected Picture[] dispPic
protected Vector3f[] points
protected boolean flushQueues
protected boolean needsfallBackMaterial
protected java.lang.String postTechniqueName
protected boolean applyHWShadows
protected boolean applyFilterMode
protected boolean applyPCFEdge
protected boolean applyShadowIntensity
protected java.util.List<Material> matCache
protected Vector2f fadeInfo
protected float fadeLength
protected boolean applyFadeInfo
protected GeometryList lightReceivers
public PssmShadowRenderer(AssetManager manager, int size, int nbSplits)
manager - the application asset managersize - the size of the rendered shadowmaps (512,1024,2048, etc...)nbSplits - the number of shadow maps rendered (the more shadow maps
 the more quality, the less fps)protected PssmShadowRenderer(AssetManager manager, int size, int nbSplits, Material postShadowMat)
manager - the application asset managersize - the size of the rendered shadowmaps (512,1024,2048, etc...)nbSplits - the number of shadow maps rendered (the more shadow maps
 the more quality, the less fps).postShadowMat - the material used for post shadows if you need to
 override itpublic final void setFilterMode(PssmShadowRenderer.FilterMode filterMode)
PssmShadowRenderer.FilterMode for more
 infofilterMode - the desired mode (not null)public final void setCompareMode(PssmShadowRenderer.CompareMode compareMode)
CompareMode for more infocompareMode - the desired mode (not null)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 void postQueue(RenderQueue rq)
SceneProcessorpostQueue in interface SceneProcessorrq - The render queuepublic void displayFrustum()
protected void displayShadowMap(Renderer r)
public void displayDebug()
public void postFrame(FrameBuffer out)
SceneProcessorpostFrame in interface SceneProcessorout - The FB to which the scene was rendered.protected void setPostShadowParams()
public void preFrame(float tpf)
SceneProcessorpreFrame in interface SceneProcessortpf - Time per framepublic void cleanup()
SceneProcessorcleanup in interface SceneProcessorpublic 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)public float getLambda()
public void setLambda(float lambda)
lambda - the lambda value.public float getShadowZExtend()
setShadowZExtend(float zFar)public void setShadowZExtend(float zFar)
zFar - the zFar values that override the computed onepublic float getShadowIntensity()
setShadowIntensity(float shadowIntensity)public final void setShadowIntensity(float shadowIntensity)
shadowIntensity - the darkness of the shadowpublic int getEdgesThickness()
setEdgesThickness(int edgesThickness)public void setEdgesThickness(int edgesThickness)
edgesThickness - the desired thickness (in tenths of a pixel, default=10)public boolean isFlushQueues()
public void setFlushQueues(boolean flushQueues)
flushQueues - true to flush the queues, false to avoid flushing thempublic void setShadowZFadeLength(float length)
length - the fade length in world unitspublic void setProfiler(AppProfiler profiler)
SceneProcessorsetProfiler in interface SceneProcessorprofiler - the profiler instance.public float getShadowZFadeLength()