Viewer3DBase.setBackgroundImage() method

Set the background image of the viewer

Signature:

setBackgroundImage(image: string | string[] | HTMLImageElement[], useAsReflectionMap?: boolean): void;

Parameters

ParameterDescription
imagestring | string[] | an HTML image DOM or an array of images represents the cube map.
useAsReflectionMapIf true, the background skybox will be used as the reflection map when pbr material is enabled.

Returns:

void