SSAOPass Class

Module: Postprocessing

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

Item Index

Methods

render

(
  • renderer
  • writeBuffer
  • readBuffer
  • delta
  • maskActive
)

Render using this pass.

Parameters:

  • renderer WebGLRenderer
  • writeBuffer WebGLRenderTarget

    Buffer to write output.

  • readBuffer WebGLRenderTarget

    Input buffer.

  • delta Number

    Delta time in milliseconds.

  • maskActive Boolean

    Not 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 Object

    Metadata 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.