{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"http://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Figure20.14DirectionalLightSunAnimated.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 20.14, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"
          },
          {
            "@name":"reference",
            "@content":"http://www.wiley.com/legacy/compbooks/vrml2sbk/ch20/20fig14.htm"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"10 September 2000"
          },
          {
            "@name":"modified",
            "@content":"15 January 2011"
          },
          {
            "@name":"description",
            "@content":"A DirectionalLight simulates the sun from sunrise through sunset, animated using multiple interpolators. Compare Figures 20.13a, 13b, 13c, 14."
          },
          {
            "@name":"reference",
            "@content":"Figure20.13aDirectionalLightSunrise.x3d"
          },
          {
            "@name":"reference",
            "@content":"Figure20.13bDirectionalLightNoon.x3d"
          },
          {
            "@name":"reference",
            "@content":"Figure20.13cDirectionalLightSunset.x3d"
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter20-Lighting/Figure20.14DirectionalLightSunAnimated.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"19 March 2017"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"warning",
            "@content":"An experimental version of X3D JSON encoding is used for this scene.  Status online at http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "Viewpoint":
            {
              "@description":"Sunlight animation",
              "@orientation":[1,0,0,-0.15],
              "@position":[0,4,10]
            }
          },
          {
            "#comment":"Note headlight turned off in NavigationInfo. Most browsers allow user toggling headlight also."
          },
          {
            "#comment":"This NavigationInfo node is bound at runtime and overrides the NavigationInfo headlight setting within the Inlined scene."
          },
          { "NavigationInfo":
            {
              "@headlight":false
            }
          },
          { "Background":
            {
              "@groundColor":[0,0,0],
              "@skyColor":[0.15,0.15,0.25]
            }
          },
          { "Group":
            {
              "-children":[
                { "DirectionalLight":
                  {
                    "@DEF":"SunLight",
                    "@ambientIntensity":0.5,
                    "@color":[1,0.6,0],
                    "@direction":[-0.8,-0.2,-0.2]
                  }
                },
                { "TimeSensor":
                  {
                    "@DEF":"Clock",
                    "@cycleInterval":10,
                    "@loop":true
                  }
                },
                { "PositionInterpolator":
                  {
                    "@DEF":"LightDirection",
                    "@key":[0,0.1,0.5,0.9,1],
                    "@keyValue":[0.8,-0.2,-0.2,0.8,-0.2,-0.2,0,-1,-0.2,-0.8,-0.2,-0.2,-0.8,-0.2,-0.2]
                  }
                },
                { "ColorInterpolator":
                  {
                    "@DEF":"LightColor",
                    "@key":[0,0.1,0.5,0.9,1],
                    "@keyValue":[1,0.6,0,1,0.6,0,1,0.9,0.7,1,0.3,0.1,1,0.3,0.1]
                  }
                },
                { "ScalarInterpolator":
                  {
                    "@DEF":"LightAmbient",
                    "@key":[0,0.1,0.5,0.9,1],
                    "@keyValue":[0.3,0.3,0.7,0.2,0.2]
                  }
                },
                { "Inline":
                  {
                    "@DEF":"VAULT",
                    "@bboxCenter":[0,1,0],
                    "@bboxSize":[6,2,6],
                    "@url":["../Chapter13-PointsLinesFaces/Figure13.16VaultedCeiling.x3d","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter13-PointsLinesFaces/Figure13.16VaultedCeiling.x3d","../Chapter13-PointsLinesFaces/Figure13.16VaultedCeiling.wrl","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter13-PointsLinesFaces/Figure13.16VaultedCeiling.wrl"]
                  }
                },
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                          "@size":[16,0.01,16]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.2,0.6,0]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"Clock",
              "@toField":"set_fraction",
              "@toNode":"LightDirection"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"Clock",
              "@toField":"set_fraction",
              "@toNode":"LightColor"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"Clock",
              "@toField":"set_fraction",
              "@toNode":"LightAmbient"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"LightDirection",
              "@toField":"set_direction",
              "@toNode":"SunLight"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"LightColor",
              "@toField":"set_color",
              "@toNode":"SunLight"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"LightAmbient",
              "@toField":"set_ambientIntensity",
              "@toNode":"SunLight"
            }
          }
        ]
    }
  }
}