Class ChromaticAberrationFilter
java.lang.Object
gaiasky.render.postprocess.filters.Filter<ChromaticAberrationFilter>
gaiasky.render.postprocess.filters.ChromaticAberrationFilter
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class gaiasky.render.postprocess.filters.Filter
Filter.Parameter -
Field Summary
Fields inherited from class gaiasky.render.postprocess.filters.Filter
defines, fragmentShaderName, inputBuffer, inputTexture, outputBuffer, program, quad, u_texture0, u_texture1, u_texture2, u_texture3, vertexShaderName -
Constructor Summary
ConstructorsConstructorDescriptionChromaticAberrationFilter(float amount) Creates a chromatic aberration filter with the given aberration amount. -
Method Summary
Modifier and TypeMethodDescriptionfloatprotected voidThis method will get called just before a rendering operation occurs.voidrebind()voidsetAberrationAmount(float amount) Updates the chromatic aberration amount.Methods inherited from class gaiasky.render.postprocess.filters.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
-
ChromaticAberrationFilter
public ChromaticAberrationFilter(float amount) Creates a chromatic aberration filter with the given aberration amount.- Parameters:
amount- The aberration amount in [0,0.2].
-
-
Method Details
-
setAberrationAmount
public void setAberrationAmount(float amount) Updates the chromatic aberration amount.- Parameters:
amount- The aberration amount in [0,0.2].
-
getAberrationAmount
public float getAberrationAmount() -
rebind
public void rebind()- Specified by:
rebindin classFilter<ChromaticAberrationFilter>
-
onBeforeRender
protected void onBeforeRender()Description copied from class:FilterThis method will get called just before a rendering operation occurs.- Specified by:
onBeforeRenderin classFilter<ChromaticAberrationFilter>
-