Skip to main content

background

Typestring | number | null
Defaultnull

Color code / URL to a image to use as the background.
For transparent background, use null. (default value)
Can be enabled only when the skybox is null.

Example

Number

{
src: "/egjs-view3d/model/draco/alarm.glb",
background: 4547670
}

Hex Color String

{
src: "/egjs-view3d/model/draco/alarm.glb",
background: "#654654"
}

Texture URL

{
src: "/egjs-view3d/model/draco/alarm.glb",
background: "/egjs-view3d/img/nopensource.png"
}