Class LevelsFilter
- java.lang.Object
-
- gaiasky.util.gdx.contrib.postprocess.filters.Filter<LevelsFilter>
-
- gaiasky.util.gdx.contrib.postprocess.filters.LevelsFilter
-
public final class LevelsFilter extends Filter<LevelsFilter>
Controls levels of brightness and contrast
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLevelsFilter.Param-
Nested classes/interfaces inherited from class gaiasky.util.gdx.contrib.postprocess.filters.Filter
Filter.Parameter
-
-
Field Summary
-
Fields inherited from class gaiasky.util.gdx.contrib.postprocess.filters.Filter
inputBuffer, inputTexture, outputBuffer, program, quad, u_texture0, u_texture1, u_texture2, u_texture3
-
-
Constructor Summary
Constructors Constructor Description LevelsFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableToneMapping()voidenableToneMappingACES()voidenableToneMappingAuto()voidenableToneMappingExposure()voidenableToneMappingFilmic()voidenableToneMappingUncharted()booleanisToneMappingAuto()protected voidonBeforeRender()This method will get called just before a rendering operation occurs.voidrebind()FIXME add commentvoidsetAvgMaxLuma(float avgLuma, float maxLuma)voidsetBrightness(float brightness)Sets the brightness levelvoidsetContrast(float contrast)Sets the contrast levelvoidsetExposure(float exposure)Sets the exposure tone mapping valuevoidsetGamma(float gamma)Sets the gamma correction valuevoidsetHue(float hue)Sets the huevoidsetSaturation(float saturation)Sets the saturation-
Methods inherited from class gaiasky.util.gdx.contrib.postprocess.filters.Filter
dispose, endParams, realRender, render, setInput, setInput, setOutput, setParam, setParam, setParam, setParam, setParam, setParam, setParams, setParams, setParams, setParams, setParams, setParams, setParamsv, setParamv, updateProgram
-
-
-
-
Method Detail
-
setContrast
public void setContrast(float contrast)
Sets the contrast level- Parameters:
contrast- The contrast value in [0..2]
-
setBrightness
public void setBrightness(float brightness)
Sets the brightness level- Parameters:
brightness- The brightness value in [-1..1]
-
setSaturation
public void setSaturation(float saturation)
Sets the saturation- Parameters:
saturation- The saturation level in [0..2]
-
setHue
public void setHue(float hue)
Sets the hue- Parameters:
hue- The hue level in [0..2]
-
setGamma
public void setGamma(float gamma)
Sets the gamma correction value- Parameters:
gamma- Gamma value in [0..3]
-
setExposure
public void setExposure(float exposure)
Sets the exposure tone mapping value- Parameters:
exposure- Exposure value in [0..n]
-
setAvgMaxLuma
public void setAvgMaxLuma(float avgLuma, float maxLuma)
-
enableToneMappingExposure
public void enableToneMappingExposure()
-
enableToneMappingAuto
public void enableToneMappingAuto()
-
enableToneMappingACES
public void enableToneMappingACES()
-
enableToneMappingUncharted
public void enableToneMappingUncharted()
-
enableToneMappingFilmic
public void enableToneMappingFilmic()
-
isToneMappingAuto
public boolean isToneMappingAuto()
-
disableToneMapping
public void disableToneMapping()
-
rebind
public void rebind()
Description copied from class:FilterFIXME add comment- Specified by:
rebindin classFilter<LevelsFilter>
-
onBeforeRender
protected void onBeforeRender()
Description copied from class:FilterThis method will get called just before a rendering operation occurs.- Specified by:
onBeforeRenderin classFilter<LevelsFilter>
-
-