|
||||||||||
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.DepthOfFieldRenderPass
public class DepthOfFieldRenderPass
GLSL Depth of Field effect pass. - Creating a depth texture with a root Spatial and its subspatials - Use it on full screen texture downsampled to blur it with stronger opacity and blurring on far away parts - render result (unblended) on the screen overwriting with the blurred parts.
Field Summary | |
---|---|
float |
blurrinessCutoff
The cut off point where we stop blurring |
float |
farBlurDepth
The depth at which we're at full blur |
float |
focalPlaneDepth
The depth at which the viewer is focussing |
float |
nearBlurDepth
The depth at which blur starts |
Fields inherited from class com.jme.renderer.pass.Pass |
---|
context, enabled, passStates, savedStates, spatials, zFactor, zOffset |
Constructor Summary | |
---|---|
DepthOfFieldRenderPass(Camera cam,
int renderScale)
Creates a new DOG renderpass |
Method Summary | |
---|---|
void |
cleanup()
Release pbuffers in TextureRenderer's. |
void |
doRender(Renderer r)
|
protected void |
doUpdate(float tpf)
|
float |
getBlurrinessCutoff()
Get the blur cut off value |
float |
getBlurSize()
Get the size of the blur kernal |
float |
getFarBlurDepth()
Get the depth at which blur is at it's maximum |
float |
getFocalPlaneDepth()
Get the focus depth of the viewer |
float |
getNearBlurDepth()
Get the depth at which blur starts |
float |
getThrottle()
|
boolean |
isSupported()
Check if this pass is supported |
protected void |
replaceEnforcedStates()
replaces any states enforced by the user at the end of the pass. |
void |
resetParameters()
Reset bloom parameters to default |
protected void |
saveEnforcedStates()
saves any states enforced by the user for replacement at the end of the pass. |
void |
setBlurrinessCutoff(float blurrinessCutoff)
Set the cutoff depth at which blurring stops |
void |
setBlurSize(float blurSize)
Set the size of the blur kernal |
void |
setFarBlurDepth(float farBlurDepth)
Set the depth at which blur is at it's maximum |
void |
setFocalPlaneDepth(float focalPlaneDepth)
Set the focus depth of the viewer |
void |
setNearBlurDepth(float nearBlurDepth)
Set the depth at which blur starts |
void |
setThrottle(float throttle)
|
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 |
Field Detail |
---|
public float nearBlurDepth
public float focalPlaneDepth
public float farBlurDepth
public float blurrinessCutoff
Constructor Detail |
---|
public DepthOfFieldRenderPass(Camera cam, int renderScale)
cam
- Camera used for rendering the bloomsourcerenderScale
- Scale of bloom textureMethod Detail |
---|
public void resetParameters()
public void cleanup()
public boolean isSupported()
protected void doUpdate(float tpf)
doUpdate
in class Pass
protected void saveEnforcedStates()
protected void replaceEnforcedStates()
public void doRender(Renderer r)
doRender
in class Pass
Pass.doRender(com.jme.renderer.Renderer)
public float getThrottle()
public void setThrottle(float throttle)
throttle
- The throttle amount - or in other words, how much time in
seconds must pass before the bloom effect is updated.public float getBlurSize()
public void setBlurSize(float blurSize)
blurSize
- The size of the blur kernalpublic float getNearBlurDepth()
public void setNearBlurDepth(float nearBlurDepth)
nearBlurDepth
- The depth at which blur startspublic float getFocalPlaneDepth()
public void setFocalPlaneDepth(float focalPlaneDepth)
public float getFarBlurDepth()
public void setFarBlurDepth(float farBlurDepth)
public float getBlurrinessCutoff()
public void setBlurrinessCutoff(float blurrinessCutoff)
blurrinessCutoff
- The depth at which blurring stops
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |