environment

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.

environment Example

{
  "atmosphereEnabled": true,
  "background": {
    "type": "color",
    "color": [
      0,
      0,
      0
    ],
    "transparency": 0
  },
  "starsEnabled": true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.