Package postprocess
Class PostProcessStep
java.lang.Object
postprocess.PostProcessStep
- Direct Known Subclasses:
BrightFilter,ForwardToTexture,HorizontalBlur,VerticalBlur,WeightedCombine
Denotes A Step in Post Processing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum to show where to render. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply()Run this Stepprotected FramebufferCreate Framebuffer based on targetabstract ShaderCreate the shader to be used for this stepvoidinit()Create the shader and framebufferabstract voidprepare()Prepare the framebuffer by clearing it and binding any textures requiredprotected abstract voiduploadUniforms(Shader shader) Upload uniforms to the shader
-
Field Details
-
framebuffer
The framebuffer to which to render to
-
-
Constructor Details
-
PostProcessStep
-
-
Method Details
-
createShader
Create the shader to be used for this step -
prepare
public abstract void prepare()Prepare the framebuffer by clearing it and binding any textures required -
uploadUniforms
Upload uniforms to the shader -
createFramebuffer
Create Framebuffer based on target -
init
public void init()Create the shader and framebuffer -
apply
Run this Step- Returns:
- id of the texture if the framebuffer to render to is not default.
-