Class Levels
java.lang.Object
gaiasky.render.postprocess.PostProcessorEffect
gaiasky.render.postprocess.effects.Levels
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
-
Field Summary
Fields inherited from class gaiasky.render.postprocess.PostProcessorEffect
disposables, disposed, enabled, enabledInCubemap, enabledInVR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
getLuma()
com.badlogic.gdx.graphics.glutils.FrameBuffer
void
rebind()
Concrete objects shall be responsible to recreate or rebind its own resources whenever its needed, usually when the OpenGL context is lost.void
render
(com.badlogic.gdx.graphics.glutils.FrameBuffer src, com.badlogic.gdx.graphics.glutils.FrameBuffer dest, GaiaSkyFrameBuffer main) Concrete objects shall implement its own rendering, given the source and destination buffers.void
setBrightness
(float value) Set the brightnessvoid
setContrast
(float value) Set the contrastvoid
setExposure
(float value) Sets the exposure tone mapping valuevoid
setGamma
(float value) Sets the gamma correction valuevoid
setHue
(float value) Set the huevoid
setSaturation
(float value) Set the saturationMethods inherited from class gaiasky.render.postprocess.PostProcessorEffect
dispose, isEnabled, isEnabledInCubemap, isEnabledInVR, restoreViewport, setEnabled, setEnabledInCubemap, setEnabledInVR, setEnabledOptions
-
Constructor Details
-
Levels
public Levels()Creates the effect
-
-
Method Details
-
getLuma
-
getLumaBuffer
public com.badlogic.gdx.graphics.glutils.FrameBuffer getLumaBuffer() -
setBrightness
public void setBrightness(float value) Set the brightness- Parameters:
value
- The brightness value in [-1..1]
-
setSaturation
public void setSaturation(float value) Set the saturation- Parameters:
value
- The saturation value in [0..2]
-
setHue
public void setHue(float value) Set the hue- Parameters:
value
- The hue value in [0..2]
-
setContrast
public void setContrast(float value) Set the contrast- Parameters:
value
- The contrast value in [0..2]
-
setGamma
public void setGamma(float value) Sets the gamma correction value- Parameters:
value
- The gamma value in [0..3]
-
setExposure
public void setExposure(float value) Sets the exposure tone mapping value- Parameters:
value
- The exposure value in [0..n]
-
enableToneMappingExposure
public void enableToneMappingExposure() -
enableToneMappingAuto
public void enableToneMappingAuto() -
enableToneMappingACES
public void enableToneMappingACES() -
enableToneMappingUncharted
public void enableToneMappingUncharted() -
enableToneMappingFilmic
public void enableToneMappingFilmic() -
disableToneMapping
public void disableToneMapping() -
rebind
public void rebind()Description copied from class:PostProcessorEffect
Concrete objects shall be responsible to recreate or rebind its own resources whenever its needed, usually when the OpenGL context is lost. E.g., frame buffer textures should be updated and shader parameters should be re-uploaded/rebound.- Specified by:
rebind
in classPostProcessorEffect
-
render
public void render(com.badlogic.gdx.graphics.glutils.FrameBuffer src, com.badlogic.gdx.graphics.glutils.FrameBuffer dest, GaiaSkyFrameBuffer main) Description copied from class:PostProcessorEffect
Concrete objects shall implement its own rendering, given the source and destination buffers.- Specified by:
render
in classPostProcessorEffect
-