Class: SSAO

SSAO

SSAO adds Screen-Space Ambient Occlusion to the renderer.


new SSAO(numSamples)

Parameters:
Name Type Description
numSamples

The amount of samples to take per pixel.

Properties:
Name Type Description
sampleRadius number

The sample radius in world space to search for occluders.

fallOffDistance number

The maximum distance for occluders to still count.

strength number

The strength of the ambient occlusion effect.

scale number

The scale at which to calculate the ambient occlusion (usually 0.5, half-resolution)

Author:
  • derschmale <http://www.derschmale.com>
See:
  • Renderer#ambientOcclusion

Extends

Members


entity

The target entity.

Inherited From:

onUpdate

If provided, this method will be called every frame, allowing updating the entity.

Inherited From:

Methods


_swapHDRFrontAndBack()

Child classes need to call this when rendering to and from full-resolution textures. This will effectively swap hdrSource and hdrTarget to allow ping-ponging.

Inherited From:

isSupported()

Returns whether this Effect is supported considering the current capabilities.

Inherited From: