Pass Class
A render Pass is used to render something in the graphics pipeline.
Can be used to render a scene, apply post processing effects, merge buffers, etc.
Item Index
Methods
Properties
Attributes
Methods
createQuadScene
()
Create a quad scene to render post-processing effects.
It creates multiple attributes in the object to support that scene.
dispose
()
Dispose this render pass.
render
-
renderer
-
writeBuffer
-
readBuffer
-
delta
-
maskActive
-
scene
Render the scene using this render pass.
Parameters:
-
renderer
WebGLRenderer -
writeBuffer
WebGLRenderTargetBuffer to write output.
-
readBuffer
WebGLRenderTargetInput buffer.
-
delta
NumberDelta time in milliseconds.
-
maskActive
BooleanNot used in this pass.
-
scene
SceneScene to render.
setSize
-
width
-
height
Set resolution of this render pass.
Parameters:
-
width
Number -
height
Number
toJSON
-
meta
Serialize pass to json.
Parameters:
-
meta
ObjectMetadata object.
Properties
clear
Boolean
If set to true, the pass clears its target buffer before rendering.
copyToScreen
Boolean
If set to true, the result of the pass needs to be copied to the ouput by the effect renderer if renderToScren is enabled.
enabled
Boolean
If set to true, the pass is processed by the composer.
needsSwap
Boolean
If set to true, the pass indicates to swap read and write buffer after rendering.
renderToScreen
Boolean
If set to true, the result of the pass is rendered to screen.