background
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
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
background: 4547670
}
Hex Color String
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
background: "#654654"
}
Texture URL
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
background: "/egjs-view3d/img/nopensource.png"
}