Class LevelsFilter
java.lang.Object
gaiasky.util.gdx.contrib.postprocess.filters.Filter<LevelsFilter>
gaiasky.util.gdx.contrib.postprocess.filters.LevelsFilter
Controls levels of brightness and contrast
-
Nested Class Summary
Nested ClassesNested 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
boolean
protected void
This method will get called just before a rendering operation occurs.void
rebind()
void
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
-
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()- 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>
-