Package com.jme3.post.filters
Class GammaCorrectionFilter
java.lang.Object
com.jme3.post.Filter
com.jme3.post.filters.GammaCorrectionFilter
- All Implemented Interfaces:
Savable
Deprecated.
use the Gamma Correction setting instead.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.post.Filter
Filter.Pass
-
Field Summary
Fields inherited from class com.jme3.post.Filter
defaultPass, enabled, material, postRenderPasses, processor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getGamma()
Deprecated.protected Material
Deprecated.Must return the material used for this filter.protected void
initFilter
(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) Deprecated.Initialization of filter subclasses.final void
setGamma
(float gamma) Deprecated.set to 0.0 to disable gamma correctionMethods inherited from class com.jme3.post.Filter
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, read, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, write
-
Constructor Details
-
GammaCorrectionFilter
public GammaCorrectionFilter()Deprecated. -
GammaCorrectionFilter
public GammaCorrectionFilter(float gamma) Deprecated.
-
-
Method Details
-
getMaterial
Deprecated.Description copied from class:Filter
Must return the material used for this filter. this method is called every frame.- Specified by:
getMaterial
in classFilter
- Returns:
- the material used for this filter.
-
initFilter
protected void initFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) Deprecated.Description copied from class:Filter
Initialization of filter subclasses. This method is called once when the filter is added to the FilterPostProcessor It should contain Material initializations and extra passes initialization- Specified by:
initFilter
in classFilter
- Parameters:
manager
- the assetManagerrenderManager
- the renderManagervp
- the viewPort where this filter is renderedw
- the width of the filterh
- the height of the filter
-
getGamma
public float getGamma()Deprecated. -
setGamma
public final void setGamma(float gamma) Deprecated.set to 0.0 to disable gamma correction- Parameters:
gamma
- the desired exponent (>0, default=2.2)
-