Package com.jme3.shadow
Class BasicShadowRenderer
java.lang.Object
com.jme3.shadow.BasicShadowRenderer
- All Implemented Interfaces:
SceneProcessor
Deprecated.
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.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Texture2D
Deprecated.protected GeometryList
Deprecated.protected GeometryList
Deprecated. -
Constructor Summary
ConstructorDescriptionBasicShadowRenderer
(AssetManager manager, int size) Deprecated.Creates a BasicShadowRenderer -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Deprecated.Called when the SP is removed from the RM.Deprecated.returns the light direction used for this processorDeprecated.debug onlyVector3f[]
Deprecated.debug onlyDeprecated.debug only returns the shadow cameravoid
initialize
(RenderManager rm, ViewPort vp) Deprecated.Called in the render thread to initialize the scene processor.boolean
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 framevoid
Deprecated.Called when the resolution of the viewport has been changed.void
setDirection
(Vector3f direction) Deprecated.sets the light direction to use to compute shadowsvoid
setProfiler
(AppProfiler profiler) Deprecated.Sets a profiler Instance for this processor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jme3.post.SceneProcessor
rescale
-
Field Details
-
dummyTex
Deprecated. -
lightReceivers
Deprecated. -
shadowOccluders
Deprecated.
-
-
Constructor Details
-
BasicShadowRenderer
Deprecated.Creates a BasicShadowRenderer- Parameters:
manager
- the asset managersize
- the size of the shadow map (the map is square)
-
-
Method Details
-
initialize
Deprecated.Description copied from interface:SceneProcessor
Called in the render thread to initialize the scene processor.- Specified by:
initialize
in interfaceSceneProcessor
- Parameters:
rm
- The render manager to which the SP was added tovp
- The viewport to which the SP is assigned
-
isInitialized
public boolean isInitialized()Deprecated.- Specified by:
isInitialized
in interfaceSceneProcessor
- Returns:
- True if initialize() has been called on this SceneProcessor, false if otherwise.
-
getDirection
Deprecated.returns the light direction used for this processor- Returns:
- the pre-existing vector
-
setDirection
Deprecated.sets the light direction to use to compute shadows- Parameters:
direction
- a direction vector (not null, unaffected)
-
getPoints
Deprecated.debug only- Returns:
- the pre-existing array
-
getShadowCamera
Deprecated.debug only returns the shadow camera- Returns:
- the pre-existing camera
-
postQueue
Deprecated.Description copied from interface:SceneProcessor
Called after the scene graph has been queued, but before it is flushed.- Specified by:
postQueue
in interfaceSceneProcessor
- Parameters:
rq
- The render queue
-
getDisplayPicture
Deprecated.debug only- Returns:
- the pre-existing instance
-
postFrame
Deprecated.Description copied from interface:SceneProcessor
Called after a frame has been rendered and the queue flushed.- Specified by:
postFrame
in interfaceSceneProcessor
- Parameters:
out
- The FB to which the scene was rendered.
-
preFrame
public void preFrame(float tpf) Deprecated.Description copied from interface:SceneProcessor
Called before a frame- Specified by:
preFrame
in interfaceSceneProcessor
- Parameters:
tpf
- Time per frame
-
cleanup
public void cleanup()Deprecated.Description copied from interface:SceneProcessor
Called when the SP is removed from the RM.- Specified by:
cleanup
in interfaceSceneProcessor
-
setProfiler
Deprecated.Description copied from interface:SceneProcessor
Sets a profiler Instance for this processor.- Specified by:
setProfiler
in interfaceSceneProcessor
- Parameters:
profiler
- the profiler instance.
-
reshape
Deprecated.Description copied from interface:SceneProcessor
Called when the resolution of the viewport has been changed.- Specified by:
reshape
in interfaceSceneProcessor
- Parameters:
vp
- the affected ViewPortw
- the new width (in pixels)h
- the new height (in pixels)
-
DirectionalLightShadowRenderer
with one split.