Represents settings that affect the environment in which the web scene is displayed. It is entirely stored as part of the initial state of the web scene, and partially in the slides in the presentation.
Referenced by: initialState, slide
Properties
Property | Details |
---|---|
atmosphereEnabled | Whether the atmosphere should be visualized. This includes sky and haze effects. |
background | The background is what is displayed behind any scene objects, stars and atmosphere. |
lighting | Object containing information on how the scene is lit. |
starsEnabled | Whether stars should be displayed in the sky. |
weather | Indicates the type of weather visualization in the scene. Must be one of the following values: |
environment Example
{
"atmosphereEnabled": true,
"background": {
"type": "color",
"color": [
0,
0,
0
],
"transparency": 0
},
"starsEnabled": true
}
environment with weather Example
{
"atmosphereEnabled": true,
"weather": {
"type": "rainy",
"cloudCover": 0.7,
"precipitation": 1
},
"starsEnabled": true
}
environment with virtual lighting Example
{
"atmosphereEnabled": true,
"background": {
"type": "color",
"color": [
0,
0,
0
],
"transparency": 0
},
"lighting": {
"type": "virtual"
},
"starsEnabled": true
}