SSAONOHPass Class
Screen space ambient occlusion (SSAO) pass is used to simulate ambient occlusion shadowing effect.
Uses the normal-oriented hemisphere method produces a more realistic-looking than the basic Crysis method.
Based on the article from http:// john-chapman-graphics.blogspot.com/2013/01/ssao-tutorial.html
More information about SSAO here
Item Index
Properties
Methods
generateRandomKernelRotations
()
Use noise to generate multiple pseudo random kernel rotations.
generateSampleKernel
()
Generate a sample kernel based on the kernelSize value.
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.
renderPass
()
Render a quad scene using a pass material.
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
kernelRadius
Boolean
Kernel radius used for the SSAO effect.
kernelSize
Number
SSAO effect kernel size.
maxDistance
Number
Maximum camera distance considered for the SSAO effect.
minDistance
Number
Minimum camera distance considered for the SSAO effect.