Class Levels
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.util.gdx.contrib.postprocess.PostProcessorEffect
-
- gaia.cu9.ari.gaiaorbit.util.gdx.contrib.postprocess.effects.Levels
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
public final class Levels extends PostProcessorEffect
Implements brightness, contrast, hue and saturation levels, plus auto-tone mapping HDR and gamma correction.
-
-
Field Summary
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.util.gdx.contrib.postprocess.PostProcessorEffect
enabled
-
-
Constructor Summary
Constructors Constructor Description Levels()Creates the effect
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableToneMapping()voiddispose()voidenableToneMappingACES()voidenableToneMappingAuto()voidenableToneMappingExposure()voidenableToneMappingFilmic()voidenableToneMappingUncharted()LumagetLuma()com.badlogic.gdx.graphics.glutils.FrameBuffergetLumaBuffer()voidrebind()Concrete objects shall be responsible to recreate or rebind its own resources whenever its needed, usually when the OpenGL context is lost.voidrender(com.badlogic.gdx.graphics.glutils.FrameBuffer src, com.badlogic.gdx.graphics.glutils.FrameBuffer dest, GaiaSkyFrameBuffer main)Concrete objects shall implements its own rendering, given the source and destination buffers.voidsetBrightness(float value)Set the brightnessvoidsetContrast(float value)Set the contrastvoidsetExposure(float value)Sets the exposure tone mapping valuevoidsetGamma(float value)Sets the gamma correction valuevoidsetHue(float value)Set the huevoidsetSaturation(float value)Set the saturation-
Methods inherited from class gaia.cu9.ari.gaiaorbit.util.gdx.contrib.postprocess.PostProcessorEffect
isEnabled, restoreViewport, setEnabled
-
-
-
-
Method Detail
-
getLuma
public Luma 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()
-
dispose
public void dispose()
-
rebind
public void rebind()
Description copied from class:PostProcessorEffectConcrete objects shall be responsible to recreate or rebind its own resources whenever its needed, usually when the OpenGL context is lost. Eg., framebuffer textures should be updated and shader parameters should be reuploaded/rebound.- Specified by:
rebindin 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:PostProcessorEffectConcrete objects shall implements its own rendering, given the source and destination buffers.- Specified by:
renderin classPostProcessorEffect
-
-