Package postprocess
Class BrightFilter
java.lang.Object
postprocess.PostProcessStep
postprocess.BrightFilter
A Post Processing Step that only renders bright parts of the scene
-
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
-
BrightFilter
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
-