Class: HBAO

HBAO

HBAO adds Horizon-Based Ambient Occlusion to the renderer.


new HBAO(numRays, numSamplesPerRay)

Parameters:
Name Type Description
numRays

The amount of rays to march over.

numSamplesPerRay

The samples per ray during a march.

Properties:
Name Type Description
numRays number

The amount of rays to march over.

numSamplesPerRay number

The samples per ray during a march.

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.

bias number

The angle bias to prevent some artifacts.

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


acceptVisitor

If provided, this method will be called by the scene partition traverser, allowing collection by the renderer.

Inherited From:

bounds

If a Component has a scene presence, it can have bounds

Inherited From:

enabled

Defines whether or not this component should be enabled.

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:

bindListener()

Listens to the entity's messenger for a given message type.

Inherited From:

broadcast()

Broadcasts a message dispatched by the owning Entity's onMessage Signal.

Inherited From:

clone()

Creates a duplicate of this Component.

Inherited From:

hasListeners()

Tests whether the given signal is being listened to.

Inherited From:

invalidateBounds()

Marks the bounds as invalid, causing them to be recalculated when next queried.

Inherited From:

isSupported()

Indicates whether this Effect is supported considering the current capabilities. Subclasses should overwrite this if support depends on extensions.

Inherited From:

unbindListener()

Listens to the entity's messenger for a given message type.

Inherited From: