Class BasicShadowRenderer

java.lang.Object
com.jme3.shadow.BasicShadowRenderer
All Implemented Interfaces:
SceneProcessor

@Deprecated public class BasicShadowRenderer extends Object implements SceneProcessor
Deprecated.
use DirectionalLightShadowRenderer with one split.
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 Details

    • dummyTex

      protected Texture2D dummyTex
      Deprecated.
    • lightReceivers

      protected GeometryList lightReceivers
      Deprecated.
    • shadowOccluders

      protected GeometryList shadowOccluders
      Deprecated.
  • Constructor Details

    • BasicShadowRenderer

      public BasicShadowRenderer(AssetManager manager, int size)
      Deprecated.
      Creates a BasicShadowRenderer
      Parameters:
      manager - the asset manager
      size - the size of the shadow map (the map is square)
  • Method Details

    • initialize

      public void initialize(RenderManager rm, ViewPort vp)
      Deprecated.
      Description copied from interface: SceneProcessor
      Called in the render thread to initialize the scene processor.
      Specified by:
      initialize in interface SceneProcessor
      Parameters:
      rm - The render manager to which the SP was added to
      vp - The viewport to which the SP is assigned
    • isInitialized

      public boolean isInitialized()
      Deprecated.
      Specified by:
      isInitialized in interface SceneProcessor
      Returns:
      True if initialize() has been called on this SceneProcessor, false if otherwise.
    • getDirection

      public Vector3f getDirection()
      Deprecated.
      returns the light direction used for this processor
      Returns:
      the pre-existing vector
    • setDirection

      public void setDirection(Vector3f direction)
      Deprecated.
      sets the light direction to use to compute shadows
      Parameters:
      direction - a direction vector (not null, unaffected)
    • getPoints

      public Vector3f[] getPoints()
      Deprecated.
      debug only
      Returns:
      the pre-existing array
    • getShadowCamera

      public Camera getShadowCamera()
      Deprecated.
      debug only returns the shadow camera
      Returns:
      the pre-existing camera
    • postQueue

      public void postQueue(RenderQueue rq)
      Deprecated.
      Description copied from interface: SceneProcessor
      Called after the scene graph has been queued, but before it is flushed.
      Specified by:
      postQueue in interface SceneProcessor
      Parameters:
      rq - The render queue
    • getDisplayPicture

      public Picture getDisplayPicture()
      Deprecated.
      debug only
      Returns:
      the pre-existing instance
    • postFrame

      public void postFrame(FrameBuffer out)
      Deprecated.
      Description copied from interface: SceneProcessor
      Called after a frame has been rendered and the queue flushed.
      Specified by:
      postFrame in interface SceneProcessor
      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 interface SceneProcessor
      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 interface SceneProcessor
    • setProfiler

      public void setProfiler(AppProfiler profiler)
      Deprecated.
      Description copied from interface: SceneProcessor
      Sets a profiler Instance for this processor.
      Specified by:
      setProfiler in interface SceneProcessor
      Parameters:
      profiler - the profiler instance.
    • reshape

      public void reshape(ViewPort vp, int w, int h)
      Deprecated.
      Description copied from interface: SceneProcessor
      Called when the resolution of the viewport has been changed.
      Specified by:
      reshape in interface SceneProcessor
      Parameters:
      vp - the affected ViewPort
      w - the new width (in pixels)
      h - the new height (in pixels)