Class ReflectionProcessor

java.lang.Object
com.jme3.water.ReflectionProcessor
All Implemented Interfaces:
com.jme3.post.SceneProcessor

public class ReflectionProcessor extends Object implements com.jme3.post.SceneProcessor
Reflection Processor Used to render the reflected scene in an off view port
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReflectionProcessor(com.jme3.renderer.Camera reflectionCam, com.jme3.texture.FrameBuffer reflectionBuffer, com.jme3.math.Plane reflectionClipPlane)
    Creates a ReflectionProcessor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    com.jme3.texture.FrameBuffer
    Internal use only
    returns the frame buffer
    com.jme3.renderer.Camera
    returns the reflection cam
    com.jme3.math.Plane
    returns the reflection clip plane
    void
    initialize(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp)
     
    boolean
     
    void
    postFrame(com.jme3.texture.FrameBuffer out)
     
    void
    postQueue(com.jme3.renderer.queue.RenderQueue rq)
     
    void
    preFrame(float tpf)
     
    void
    reshape(com.jme3.renderer.ViewPort vp, int w, int h)
     
    void
    setProfiler(com.jme3.profile.AppProfiler profiler)
     
    void
    setReflectionBuffer(com.jme3.texture.FrameBuffer reflectionBuffer)
    Internal use only
    sets the frame buffer
    void
    setReflectionCam(com.jme3.renderer.Camera reflectionCam)
    sets the reflection cam
    void
    setReflectionClipPlane(com.jme3.math.Plane reflectionClipPlane)
    Sets the reflection clip plane

    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
  • Constructor Details

    • ReflectionProcessor

      public ReflectionProcessor(com.jme3.renderer.Camera reflectionCam, com.jme3.texture.FrameBuffer reflectionBuffer, com.jme3.math.Plane reflectionClipPlane)
      Creates a ReflectionProcessor
      Parameters:
      reflectionCam - the cam to use for reflection
      reflectionBuffer - the FrameBuffer to render to
      reflectionClipPlane - the clipping plane
  • Method Details

    • initialize

      public void initialize(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp)
      Specified by:
      initialize in interface com.jme3.post.SceneProcessor
    • reshape

      public void reshape(com.jme3.renderer.ViewPort vp, int w, int h)
      Specified by:
      reshape in interface com.jme3.post.SceneProcessor
    • isInitialized

      public boolean isInitialized()
      Specified by:
      isInitialized in interface com.jme3.post.SceneProcessor
    • preFrame

      public void preFrame(float tpf)
      Specified by:
      preFrame in interface com.jme3.post.SceneProcessor
    • postQueue

      public void postQueue(com.jme3.renderer.queue.RenderQueue rq)
      Specified by:
      postQueue in interface com.jme3.post.SceneProcessor
    • postFrame

      public void postFrame(com.jme3.texture.FrameBuffer out)
      Specified by:
      postFrame in interface com.jme3.post.SceneProcessor
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface com.jme3.post.SceneProcessor
    • setProfiler

      public void setProfiler(com.jme3.profile.AppProfiler profiler)
      Specified by:
      setProfiler in interface com.jme3.post.SceneProcessor
    • getReflectionBuffer

      public com.jme3.texture.FrameBuffer getReflectionBuffer()
      Internal use only
      returns the frame buffer
      Returns:
      the pre-existing buffer
    • setReflectionBuffer

      public void setReflectionBuffer(com.jme3.texture.FrameBuffer reflectionBuffer)
      Internal use only
      sets the frame buffer
      Parameters:
      reflectionBuffer - the FrameBuffer to use (alias created)
    • getReflectionCam

      public com.jme3.renderer.Camera getReflectionCam()
      returns the reflection cam
      Returns:
      the pre-existing Camera
    • setReflectionCam

      public void setReflectionCam(com.jme3.renderer.Camera reflectionCam)
      sets the reflection cam
      Parameters:
      reflectionCam - the Camera to use (alias created)
    • getReflectionClipPlane

      public com.jme3.math.Plane getReflectionClipPlane()
      returns the reflection clip plane
      Returns:
      the pre-existing instance
    • setReflectionClipPlane

      public void setReflectionClipPlane(com.jme3.math.Plane reflectionClipPlane)
      Sets the reflection clip plane
      Parameters:
      reflectionClipPlane - the Plane to use (alias created)