Package postprocess
Class ForwardToTexture
java.lang.Object
postprocess.PostProcessStep
postprocess.ForwardToTexture
A Post Processing Step that renders the texture as-is to another framebuffer.
Perfect for debugging steps.
NOTE: If you want to forward any texture to the screen, the scene class has a forwardToScreen field that can be used
-
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
-
ForwardToTexture
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
-