|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.renderer.pass.Pass
com.jmex.effects.glsl.MotionBlurRenderPass
public class MotionBlurRenderPass
GLSL motion blur pass.
Field Summary |
---|
Fields inherited from class com.jme.renderer.pass.Pass |
---|
context, enabled, passStates, savedStates, spatials, zFactor, zOffset |
Constructor Summary | |
---|---|
MotionBlurRenderPass(Camera cam)
Creates a new motionblur renderpass |
Method Summary | |
---|---|
void |
addMotionBlurSpatial(Spatial spatial)
Adds a spatial to be tracked and rendered with motionblur |
void |
cleanup()
Release pbuffers in TextureRenderer's. |
void |
doRender(Renderer r)
doRender renders this pass to the framebuffer |
protected void |
doUpdate(float tpf)
|
float |
getBlurStrength()
|
Texture |
getMainTexture()
|
boolean |
isFreeze()
|
boolean |
isSupported()
|
void |
reloadShader()
Verifies that the shaders are compiling and reloads them |
void |
resetParameters()
Reset motionblur parameters to default |
void |
setBlurStrength(float blurStrength)
|
void |
setFreeze(boolean freeze)
|
void |
setUseCurrentScene(boolean useCurrentScene)
|
boolean |
useCurrentScene()
|
Methods inherited from class com.jme.renderer.pass.Pass |
---|
add, applyPassStates, cleanUp, clearPassState, clearPassState, clearPassStates, contains, get, getRenderState, getRenderState, getZFactor, getZOffset, isEnabled, remove, removeAll, renderPass, resetOldStates, setEnabled, setPassState, setZFactor, setZOffset, size, updatePass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MotionBlurRenderPass(Camera cam)
cam
- Camera used for rendering the motionblur sourceMethod Detail |
---|
public void addMotionBlurSpatial(Spatial spatial)
spatial
- The spatial to trackpublic void resetParameters()
public void cleanup()
public boolean isSupported()
public void reloadShader()
protected void doUpdate(float tpf)
doUpdate
in class Pass
public void doRender(Renderer r)
doRender
renders this pass to the framebuffer
doRender
in class Pass
r
- Renderer to use for drawing.Pass.doRender(com.jme.renderer.Renderer)
public Texture getMainTexture()
public boolean useCurrentScene()
public void setUseCurrentScene(boolean useCurrentScene)
public boolean isFreeze()
public void setFreeze(boolean freeze)
public float getBlurStrength()
public void setBlurStrength(float blurStrength)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |