SSAOPass Class
Screen space ambient occlusion (SSAO) pass is used to simulate ambient occlusion shadowing effect.
This variant of SSAO produces a halo like effect to simulate the effect.
More information about SSAO here
Methods
render
(
-
renderer
-
writeBuffer
-
readBuffer
-
delta
-
maskActive
Render using this pass.
Parameters:
-
renderer
WebGLRenderer -
writeBuffer
WebGLRenderTargetBuffer to write output.
-
readBuffer
WebGLRenderTargetInput buffer.
-
delta
NumberDelta time in milliseconds.
-
maskActive
BooleanNot used in this pass.
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
aoClamp
Number
Ambient occlusion clamp.
lumInfluence
Number
Pixel luminosity influence in AO calculation.
onlyAO
Boolean
Display only ambient occlusion result.
radius
Number
Ambient occlusion shadow radius.