public class BloomFilter
extends com.jme3.post.Filter
| Modifier and Type | Class and Description |
|---|---|
static class |
BloomFilter.GlowMode
GlowMode specifies if the glow will be applied to the whole scene,or to objects that have aglow color or a glow map
|
| Constructor and Description |
|---|
BloomFilter()
Creates a Bloom filter
|
BloomFilter(BloomFilter.GlowMode glowMode)
Creates the bloom filter with the specific glow mode
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUpFilter(com.jme3.renderer.Renderer r) |
float |
getBloomIntensity()
returns the bloom intensity
|
float |
getBlurScale()
returns the blur scale
|
float |
getDownSamplingFactor()
returns the downSampling factor
form more details see setDownSamplingFactor(float downSamplingFactor) |
float |
getExposureCutOff()
returns the exposure cutoff
for more details see setExposureCutOff(float exposureCutOff) |
float |
getExposurePower()
returns the exposure power
form more details see setExposurePower(float exposurePower) |
protected com.jme3.material.Material |
getMaterial() |
protected void |
initFilter(com.jme3.asset.AssetManager manager,
com.jme3.renderer.RenderManager renderManager,
com.jme3.renderer.ViewPort vp,
int w,
int h) |
protected void |
postQueue(com.jme3.renderer.queue.RenderQueue queue) |
void |
read(com.jme3.export.JmeImporter im) |
protected void |
reInitFilter() |
void |
setBloomIntensity(float bloomIntensity)
intensity of the bloom effect default is 2.0
|
void |
setBlurScale(float blurScale)
sets The spread of the bloom default is 1.5f
|
void |
setDownSamplingFactor(float downSamplingFactor)
Sets the downSampling factor : the size of the computed texture will be divided by this factor.
|
void |
setExposureCutOff(float exposureCutOff)
Define the color threshold on which the bloom will be applied (0.0 to 1.0)
|
void |
setExposurePower(float exposurePower)
defines how many time the bloom extracted color will be multiplied by itself.
|
void |
write(com.jme3.export.JmeExporter ex) |
cleanup, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, preFrame, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBufferpublic BloomFilter()
public BloomFilter(BloomFilter.GlowMode glowMode)
glowMode - protected void initFilter(com.jme3.asset.AssetManager manager,
com.jme3.renderer.RenderManager renderManager,
com.jme3.renderer.ViewPort vp,
int w,
int h)
initFilter in class com.jme3.post.Filterprotected void reInitFilter()
protected com.jme3.material.Material getMaterial()
getMaterial in class com.jme3.post.Filterprotected void postQueue(com.jme3.renderer.queue.RenderQueue queue)
postQueue in class com.jme3.post.Filterprotected void cleanUpFilter(com.jme3.renderer.Renderer r)
cleanUpFilter in class com.jme3.post.Filterpublic float getBloomIntensity()
public void setBloomIntensity(float bloomIntensity)
bloomIntensity - public float getBlurScale()
public void setBlurScale(float blurScale)
blurScale - public float getExposureCutOff()
setExposureCutOff(float exposureCutOff)public void setExposureCutOff(float exposureCutOff)
exposureCutOff - public float getExposurePower()
setExposurePower(float exposurePower)public void setExposurePower(float exposurePower)
exposurePower - public float getDownSamplingFactor()
setDownSamplingFactor(float downSamplingFactor)public void setDownSamplingFactor(float downSamplingFactor)
downSamplingFactor - public void write(com.jme3.export.JmeExporter ex)
throws java.io.IOException
write in interface com.jme3.export.Savablewrite in class com.jme3.post.Filterjava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savableread in class com.jme3.post.Filterjava.io.IOException