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
FieldsModifier and TypeFieldDescriptionprotected Texture2DDeprecated.protected GeometryListDeprecated.protected GeometryListDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionBasicShadowRenderer(AssetManager manager, int size) Deprecated.Creates a BasicShadowRenderer -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()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 cameravoidinitialize(RenderManager rm, ViewPort vp) Deprecated.Called in the render thread to initialize the scene processor.booleanDeprecated.voidpostFrame(FrameBuffer out) Deprecated.Called after a frame has been rendered and the queue flushed.voidpostQueue(RenderQueue rq) Deprecated.Called after the scene graph has been queued, but before it is flushed.voidpreFrame(float tpf) Deprecated.Called before a framevoidDeprecated.Called when the resolution of the viewport has been changed.voidsetDirection(Vector3f direction) Deprecated.sets the light direction to use to compute shadowsvoidsetProfiler(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, waitMethods 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:SceneProcessorCalled in the render thread to initialize the scene processor.- Specified by:
initializein 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:
isInitializedin 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:SceneProcessorCalled after the scene graph has been queued, but before it is flushed.- Specified by:
postQueuein interfaceSceneProcessor- Parameters:
rq- The render queue
-
getDisplayPicture
Deprecated.debug only- Returns:
- the pre-existing instance
-
postFrame
Deprecated.Description copied from interface:SceneProcessorCalled after a frame has been rendered and the queue flushed.- Specified by:
postFramein interfaceSceneProcessor- Parameters:
out- The FB to which the scene was rendered.
-
preFrame
public void preFrame(float tpf) Deprecated.Description copied from interface:SceneProcessorCalled before a frame- Specified by:
preFramein interfaceSceneProcessor- Parameters:
tpf- Time per frame
-
cleanup
public void cleanup()Deprecated.Description copied from interface:SceneProcessorCalled when the SP is removed from the RM.- Specified by:
cleanupin interfaceSceneProcessor
-
setProfiler
Deprecated.Description copied from interface:SceneProcessorSets a profiler Instance for this processor.- Specified by:
setProfilerin interfaceSceneProcessor- Parameters:
profiler- the profiler instance.
-
reshape
Deprecated.Description copied from interface:SceneProcessorCalled when the resolution of the viewport has been changed.- Specified by:
reshapein interfaceSceneProcessor- Parameters:
vp- the affected ViewPortw- the new width (in pixels)h- the new height (in pixels)
-
DirectionalLightShadowRendererwith one split.