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

PropertyDetails
atmosphereEnabledWhether the atmosphere should be visualized. This includes sky and haze effects.
backgroundThe background is what is displayed behind any scene objects, stars and atmosphere.
lightingObject containing information on how the scene is lit.
starsEnabledWhether stars should be displayed in the sky.
weatherIndicates 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
}