{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"DirectionalLightExample.x3d"
          },
          {
            "@name":"description",
            "@content":"An example of the DirectionalLight node showing no shadows on the lit geometry."
          },
          {
            "@name":"creator",
            "@content":"Leonard Daly and Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"24 April 2006"
          },
          {
            "@name":"modified",
            "@content":"27 July 2024"
          },
          {
            "@name":"Image",
            "@content":"DirectionalLightFigure.png"
          },
          {
            "@name":"reference",
            "@content":"https://X3dGraphics.com"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dResources.html"
          },
          {
            "@name":"rights",
            "@content":"Copyright 2006, Daly Realism and Don Brutzman"
          },
          {
            "@name":"subject",
            "@content":"X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter11LightingEnvironmentalEffects/DirectionalLightExample.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"17 April 2026"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"DirectionalLightExample.x3d"
            }
          },
          { "Background":
            {
              "@skyColor":[1,1,1]
            }
          },
          { "Viewpoint":
            {
              "@description":"Book Viewpoint",
              "@orientation":[0.627,-0.707,-0.326,-0.93],
              "@position":[6.03,6.69,9.25]
            }
          },
          { "NavigationInfo":
            {
              "@headlight":false
            }
          },
          { "DirectionalLight":
            {
            }
          },
          { "Transform":
            {
              "@translation":[0,1.5,7],
              "-children":[
                { "Group":
                  {
                    "@DEF":"Arrow",
                    "-children":[
                      { "Transform":
                        {
                          "@rotation":[1,0,0,1.57],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"ArrowApp",
                                      "-material":
                                        { "Material":
                                          {
                                            "@DEF":"ArrowColor"
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@radius":0.1
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[1,0,0,-1.57],
                          "@translation":[0,0,-1],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"ArrowApp"
                                    }
                                  },
                                "-geometry":
                                  { "Cone":
                                    {
                                      "@bottomRadius":0.25,
                                      "@height":0.5
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0,0.5,7],
              "-children":[
                { "Group":
                  {
                    "@USE":"Arrow"
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0,-0.5,7],
              "-children":[
                { "Group":
                  {
                    "@USE":"Arrow"
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0,-1.5,7],
              "-children":[
                { "Group":
                  {
                    "@USE":"Arrow"
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "-children":[
                { "Transform":
                  {
                    "@DEF":"Box",
                    "@translation":[0,0,4],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[1,0,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[2,2,0.2]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@DEF":"rod",
                    "@translation":[0,0,1],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0,0.8,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Cylinder":
                              {
                                "@height":4
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@DEF":"hat",
                    "@rotation":[0,0,1,1.57],
                    "@translation":[1,0,-2],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0,0,1]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Cone":
                              {
                                "@height":4
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@DEF":"ball",
                    "@translation":[3,0,-5],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0,1,1]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Sphere":
                              {
                                "@radius":2
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}