Package com.jme3.water
Class ReflectionProcessor
java.lang.Object
com.jme3.water.ReflectionProcessor
- All Implemented Interfaces:
com.jme3.post.SceneProcessor
Reflection Processor
Used to render the reflected scene in an off view port
-
Constructor Summary
ConstructorsConstructorDescriptionReflectionProcessor(com.jme3.renderer.Camera reflectionCam, com.jme3.texture.FrameBuffer reflectionBuffer, com.jme3.math.Plane reflectionClipPlane) Creates a ReflectionProcessor -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()com.jme3.texture.FrameBufferInternal use only
returns the frame buffercom.jme3.renderer.Camerareturns the reflection camcom.jme3.math.Planereturns the reflection clip planevoidinitialize(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp) booleanvoidpostFrame(com.jme3.texture.FrameBuffer out) voidpostQueue(com.jme3.renderer.queue.RenderQueue rq) voidpreFrame(float tpf) voidreshape(com.jme3.renderer.ViewPort vp, int w, int h) voidsetProfiler(com.jme3.profile.AppProfiler profiler) voidsetReflectionBuffer(com.jme3.texture.FrameBuffer reflectionBuffer) Internal use only
sets the frame buffervoidsetReflectionCam(com.jme3.renderer.Camera reflectionCam) sets the reflection camvoidsetReflectionClipPlane(com.jme3.math.Plane reflectionClipPlane) Sets the reflection clip planeMethods 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
-
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 reflectionreflectionBuffer- the FrameBuffer to render toreflectionClipPlane- the clipping plane
-
-
Method Details
-
initialize
public void initialize(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp) - Specified by:
initializein interfacecom.jme3.post.SceneProcessor
-
reshape
public void reshape(com.jme3.renderer.ViewPort vp, int w, int h) - Specified by:
reshapein interfacecom.jme3.post.SceneProcessor
-
isInitialized
public boolean isInitialized()- Specified by:
isInitializedin interfacecom.jme3.post.SceneProcessor
-
preFrame
public void preFrame(float tpf) - Specified by:
preFramein interfacecom.jme3.post.SceneProcessor
-
postQueue
public void postQueue(com.jme3.renderer.queue.RenderQueue rq) - Specified by:
postQueuein interfacecom.jme3.post.SceneProcessor
-
postFrame
public void postFrame(com.jme3.texture.FrameBuffer out) - Specified by:
postFramein interfacecom.jme3.post.SceneProcessor
-
cleanup
public void cleanup()- Specified by:
cleanupin interfacecom.jme3.post.SceneProcessor
-
setProfiler
public void setProfiler(com.jme3.profile.AppProfiler profiler) - Specified by:
setProfilerin interfacecom.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)
-