Set the background image of the viewer
Signature:
setBackgroundImage(image: string | string[] | HTMLImageElement[], useAsReflectionMap?: boolean): void;
Parameter | Description |
---|---|
image | string | string[] | an HTML image DOM or an array of images represents the cube map. |
useAsReflectionMap | If true, the background skybox will be used as the reflection map when pbr material is enabled. |
Returns:
void