Class Glow
java.lang.Object
gaiasky.util.gdx.contrib.postprocess.filters.Filter<Glow>
gaiasky.util.gdx.contrib.postprocess.filters.Glow
public final class Glow extends Filter<Glow>
Scattering Light effect.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Glow.Param
Nested 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 Constructor Description Glow(int width, int height)
-
Method Summary
Modifier and Type Method Description com.badlogic.gdx.graphics.Texture
getLightGlowTexture()
com.badlogic.gdx.graphics.Texture
getPrePassTexture()
protected void
onBeforeRender()
This method will get called just before a rendering operation occurs.void
rebind()
FIXME add commentvoid
setBackbufferScale(float s)
void
setLightColors(float[] colors)
void
setLightGlowTexture(com.badlogic.gdx.graphics.Texture tex)
void
setLightPositions(int nLights, float[] vec)
void
setLightViewAngles(float[] ang)
void
setNSamples(int nSamples)
void
setOrientation(float o)
void
setPrePassTexture(com.badlogic.gdx.graphics.Texture tex)
void
setSpiralScale(float scl)
void
setTextureScale(float scl)
void
setViewportSize(float width, float height)
Methods 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Glow
public Glow(int width, int height)
-
-
Method Details
-
setBackbufferScale
public void setBackbufferScale(float s) -
setViewportSize
public void setViewportSize(float width, float height) -
setLightPositions
public void setLightPositions(int nLights, float[] vec) -
setLightViewAngles
public void setLightViewAngles(float[] ang) -
setLightColors
public void setLightColors(float[] colors) -
setNSamples
public void setNSamples(int nSamples) -
setTextureScale
public void setTextureScale(float scl) -
setSpiralScale
public void setSpiralScale(float scl) -
setLightGlowTexture
public void setLightGlowTexture(com.badlogic.gdx.graphics.Texture tex) -
getLightGlowTexture
public com.badlogic.gdx.graphics.Texture getLightGlowTexture() -
setPrePassTexture
public void setPrePassTexture(com.badlogic.gdx.graphics.Texture tex) -
getPrePassTexture
public com.badlogic.gdx.graphics.Texture getPrePassTexture() -
setOrientation
public void setOrientation(float o) -
rebind
public void rebind()Description copied from class:Filter
FIXME add comment -
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<Glow>
-