Skip to main content

Type Alias: AddLayerToScene

AddLayerToScene = (imgUrl) => Promise<Layer | null>

Function

Shows an image as a 2D layer over the 3D scene.

Parameters​

imgUrl​

string

URL of the image to show

Returns​

Promise<Layer | null>

The created layer, or null when no scene is loaded