com.jme3.post.filters
Class GammaCorrectionFilter

java.lang.Object
  extended by com.jme3.post.Filter
      extended by com.jme3.post.filters.GammaCorrectionFilter
All Implemented Interfaces:
Savable

public class GammaCorrectionFilter
extends Filter


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
GammaCorrectionFilter()
           
GammaCorrectionFilter(float gamma)
           
 
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
 

Constructor Detail

GammaCorrectionFilter

public GammaCorrectionFilter()

GammaCorrectionFilter

public GammaCorrectionFilter(float gamma)
Method Detail

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 assetManager
renderManager - the renderManager
vp - the viewPort where this filter is rendered
w - the width of the filter
h - 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)