public class ReflectionProcessor
extends java.lang.Object
implements com.jme3.post.SceneProcessor
| Constructor and Description |
|---|
ReflectionProcessor(com.jme3.renderer.Camera reflectionCam,
com.jme3.texture.FrameBuffer reflectionBuffer,
com.jme3.math.Plane reflectionClipPlane)
Creates a ReflectionProcessor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
com.jme3.texture.FrameBuffer |
getReflectionBuffer()
Internal use only
returns the frame buffer |
com.jme3.renderer.Camera |
getReflectionCam()
returns the reflection cam
|
com.jme3.math.Plane |
getReflectionClipPlane()
returns the reflection clip plane
|
void |
initialize(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp) |
boolean |
isInitialized() |
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
|
public ReflectionProcessor(com.jme3.renderer.Camera reflectionCam,
com.jme3.texture.FrameBuffer reflectionBuffer,
com.jme3.math.Plane reflectionClipPlane)
reflectionCam - the cam to use for reflectionreflectionBuffer - the FrameBuffer to render toreflectionClipPlane - the clipping planepublic void initialize(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp)
initialize in interface com.jme3.post.SceneProcessorpublic void reshape(com.jme3.renderer.ViewPort vp,
int w,
int h)
reshape in interface com.jme3.post.SceneProcessorpublic boolean isInitialized()
isInitialized in interface com.jme3.post.SceneProcessorpublic void preFrame(float tpf)
preFrame in interface com.jme3.post.SceneProcessorpublic void postQueue(com.jme3.renderer.queue.RenderQueue rq)
postQueue in interface com.jme3.post.SceneProcessorpublic void postFrame(com.jme3.texture.FrameBuffer out)
postFrame in interface com.jme3.post.SceneProcessorpublic void cleanup()
cleanup in interface com.jme3.post.SceneProcessorpublic void setProfiler(com.jme3.profile.AppProfiler profiler)
setProfiler in interface com.jme3.post.SceneProcessorpublic com.jme3.texture.FrameBuffer getReflectionBuffer()
public void setReflectionBuffer(com.jme3.texture.FrameBuffer reflectionBuffer)
reflectionBuffer - the FrameBuffer to use (alias created)public com.jme3.renderer.Camera getReflectionCam()
public void setReflectionCam(com.jme3.renderer.Camera reflectionCam)
reflectionCam - the Camera to use (alias created)public com.jme3.math.Plane getReflectionClipPlane()
public void setReflectionClipPlane(com.jme3.math.Plane reflectionClipPlane)
reflectionClipPlane - the Plane to use (alias created)