Package com.jme3.post.filters
Class ColorOverlayFilter
java.lang.Object
com.jme3.post.Filter
com.jme3.post.filters.ColorOverlayFilter
- All Implemented Interfaces:
com.jme3.export.Savable
public class ColorOverlayFilter
extends com.jme3.post.Filter
This filter simply multiply the whole scene by a color
- Author:
- Rémy Bouquet aka Nehon
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.post.Filter
com.jme3.post.Filter.Pass -
Field Summary
Fields inherited from class com.jme3.post.Filter
defaultPass, enabled, material, postRenderPasses, processor -
Constructor Summary
ConstructorsConstructorDescriptioncreates a colorOverlayFilter with a white color (transparent)ColorOverlayFilter(com.jme3.math.ColorRGBA color) creates a colorOverlayFilter with the given color -
Method Summary
Modifier and TypeMethodDescriptioncom.jme3.math.ColorRGBAgetColor()returns the colorprotected com.jme3.material.Materialprotected voidinitFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h) voidread(com.jme3.export.JmeImporter im) voidsetColor(com.jme3.math.ColorRGBA color) sets the colorvoidwrite(com.jme3.export.JmeExporter ex) Methods inherited from class com.jme3.post.Filter
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer
-
Constructor Details
-
ColorOverlayFilter
public ColorOverlayFilter()creates a colorOverlayFilter with a white color (transparent) -
ColorOverlayFilter
public ColorOverlayFilter(com.jme3.math.ColorRGBA color) creates a colorOverlayFilter with the given color- Parameters:
color- the desired color (default=(1,1,1,1), alias created)
-
-
Method Details
-
getMaterial
protected com.jme3.material.Material getMaterial()- Specified by:
getMaterialin classcom.jme3.post.Filter
-
getColor
public com.jme3.math.ColorRGBA getColor()returns the color- Returns:
- color
-
setColor
public void setColor(com.jme3.math.ColorRGBA color) sets the color- Parameters:
color- the desired color (default=(1,1,1,1), alias created)
-
initFilter
protected void initFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h) - Specified by:
initFilterin classcom.jme3.post.Filter
-
write
- Specified by:
writein interfacecom.jme3.export.Savable- Overrides:
writein classcom.jme3.post.Filter- Throws:
IOException
-
read
- Specified by:
readin interfacecom.jme3.export.Savable- Overrides:
readin classcom.jme3.post.Filter- Throws:
IOException
-