com.jme3.post.filters
Class GammaCorrectionFilter
java.lang.Object
com.jme3.post.Filter
com.jme3.post.filters.GammaCorrectionFilter
- All Implemented Interfaces:
- Savable
public class GammaCorrectionFilter
- extends Filter
Method Summary |
float |
getGamma()
|
protected Material |
getMaterial()
Must return the material used for this filter. |
protected void |
initFilter(AssetManager manager,
RenderManager renderManager,
ViewPort vp,
int w,
int h)
Initialization of sub classes filters
This method is called once when the filter is added to the FilterPostProcessor
It should contain Material initializations and extra passes initialization |
boolean |
isComputeLuma()
|
void |
setComputeLuma(boolean computeLuma)
|
void |
setGamma(float gamma)
set to 0.0 to disable gamma correction |
Methods inherited from class com.jme3.post.Filter |
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresDepthTexture, isRequiresSceneTexture, postFrame, postQueue, preFrame, read, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GammaCorrectionFilter
public GammaCorrectionFilter()
GammaCorrectionFilter
public GammaCorrectionFilter(float gamma)
getMaterial
protected Material getMaterial()
- Description copied from class:
Filter
- Must return the material used for this filter.
this method is called every frame.
- Specified by:
getMaterial
in class Filter
- Returns:
- the material used for this filter.
initFilter
protected void initFilter(AssetManager manager,
RenderManager renderManager,
ViewPort vp,
int w,
int h)
- Description copied from class:
Filter
- Initialization of sub classes filters
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 class Filter
- 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()
setGamma
public void setGamma(float gamma)
- set to 0.0 to disable gamma correction
- Parameters:
gamma
-
isComputeLuma
public boolean isComputeLuma()
setComputeLuma
public void setComputeLuma(boolean computeLuma)