Class LevelsFilter
java.lang.Object
gaiasky.render.postprocess.filters.Filter<LevelsFilter>
gaiasky.render.postprocess.filters.LevelsFilter
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Filter
Filter.Parameter -
Field Summary
Fields inherited from class Filter
defines, fragmentShaderName, inputBuffer, inputTexture, outputBuffer, program, quad, u_texture0, u_texture1, u_texture2, u_texture3, vertexShaderName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidbooleanprotected voidThis method will get called just before a rendering operation occurs.voidrebind()voidsetAvgMaxLuma(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 saturationMethods inherited from class Filter
dispose, endParams, realRender, render, setInput, setInput, setOutput, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParams, setParams, setParams, setParams, setParams, setParams, setParams, setParams, setParamsv, setParamv, updateProgram, 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:
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>
-