Class: MagoDepth

MagoDepth()

MagoDepth

Constructor

new MagoDepth()

Source:
Example
const magoDepth = new MagoDepth(viewer);
magoDepth.on();

Classes

MagoDepth

Members

globalOptions :GlobalOptions

Type:
Source:

Methods

(async) init(viewer) → {Promise.<void>}

Initializes the Screen Space Ambient Occlusion effect.
Parameters:
Name Type Description
viewer
Source:
Returns:
Type
Promise.<void>

off() → {void}

Turns off the Screen Space Ambient Occlusion effect.
Source:
Returns:
Type
void

on() → {void}

Turns on the Screen Space Ambient Occlusion effect.
Source:
Returns:
Type
void

(async) setup(viewer) → {Promise.<void>}

Sets up the Screen Space Ambient Occlusion effect.
Parameters:
Name Type Description
viewer
Source:
Returns:
Type
Promise.<void>

toggle() → {void}

Toggles the Screen Space Ambient Occlusion effect on or off.
Source:
Returns:
Type
void