{
  "title": "environment",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "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.",
  "properties": {
    "atmosphereEnabled": {
      "type": "boolean",
      "description": "Whether the atmosphere should be visualized. This includes sky and haze effects.",
      "default": true
    },
    "background": {
      "type": "object",
      "description": "The background is what is displayed behind any scene objects, stars and atmosphere.",
      "$ref": "environment_background_color_schema.json"
    },
    "lighting": {
      "type": "object",
      "$ref": "lighting_schema.json"
    },
    "starsEnabled": {
      "type": "boolean",
      "description": "Whether stars should be displayed in the sky.",
      "default": true
    }
  },
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "environment",
        "code": {
          "environment": {
            "atmosphereEnabled": true,
            "background": {
              "type": "color",
              "color": [
                0,
                0,
                0
              ],
              "transparency": 0
            },
            "starsEnabled": true
          }
        }
      }
    ]
  }
}
