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 class
LevelsFilter.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
Modifier and Type Method Description void
disableToneMapping()
void
enableToneMappingACES()
void
enableToneMappingAuto()
void
enableToneMappingExposure()
void
enableToneMappingFilmic()
void
enableToneMappingUncharted()
boolean
isToneMappingAuto()
protected void
onBeforeRender()
This method will get called just before a rendering operation occurs.void
rebind()
FIXME add commentvoid
setAvgMaxLuma(float avgLuma, float maxLuma)
void
setBrightness(float brightness)
Sets the brightness levelvoid
setContrast(float contrast)
Sets the contrast levelvoid
setExposure(float exposure)
Sets the exposure tone mapping valuevoid
setGamma(float gamma)
Sets the gamma correction valuevoid
setHue(float hue)
Sets the huevoid
setSaturation(float saturation)
Sets the saturationMethods 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LevelsFilter
public LevelsFilter()
-
-
Method Details
-
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:Filter
FIXME add comment- Specified by:
rebind
in classFilter<LevelsFilter>
-
onBeforeRender
protected void onBeforeRender()Description copied from class:Filter
This method will get called just before a rendering operation occurs.- Specified by:
onBeforeRender
in classFilter<LevelsFilter>
-