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
Modifier and TypeClassDescriptionstatic enum
Enum to show where to render. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply()
Run this Stepprotected Framebuffer
Create Framebuffer based on targetabstract Shader
Create the shader to be used for this stepvoid
init()
Create the shader and framebufferabstract void
prepare()
Prepare the framebuffer by clearing it and binding any textures requiredprotected abstract void
uploadUniforms
(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.
-