Package postprocess
Class VerticalBlur
java.lang.Object
postprocess.PostProcessStep
postprocess.VerticalBlur
A Post Processing Step that renders the texture with a Vertical Blur.
NOTE: If you want a more blurry texture, consider using Target.ONE_COLOR_HALF_SIZE_TEXTURE_FRAMEBUFFER to get a smaller framebuffer size and in turn, a more blurrier texture
-
Nested Class Summary
Nested classes/interfaces inherited from class postprocess.PostProcessStep
PostProcessStep.Target
-
Field Summary
Fields inherited from class postprocess.PostProcessStep
framebuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate the shader to be used for this stepvoid
prepare()
Prepare the framebuffer by clearing it and binding any textures requiredvoid
setTexture
(Texture texture) Set the input textureprotected void
uploadUniforms
(Shader shader) Upload uniforms to the shaderMethods inherited from class postprocess.PostProcessStep
apply, createFramebuffer, init
-
Constructor Details
-
VerticalBlur
Default Constructor- Parameters:
target
- Where the final texture is to be rendered
-
-
Method Details
-
createShader
Create the shader to be used for this step- Specified by:
createShader
in classPostProcessStep
- Returns:
- the created shader
-
prepare
public void prepare()Prepare the framebuffer by clearing it and binding any textures required- Specified by:
prepare
in classPostProcessStep
-
uploadUniforms
Upload uniforms to the shader- Specified by:
uploadUniforms
in classPostProcessStep
-
setTexture
Set the input texture- Parameters:
texture
- input texture
-