{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"4.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-4.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "component": [
          {
            "@name":"TextureProjection",
            "@level":2
          }
        ],
        "meta": [
          {
            "@name":"title",
            "@content":"TextureProjectorComponentExample.x3d"
          },
          {
            "@name":"description",
            "@content":"Texture projector component example"
          },
          {
            "@name":"creator",
            "@content":"Kwan Hee Yoo, Dick Puk and Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"1 January 2019"
          },
          {
            "@name":"modified",
            "@content":"7 December 2024"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/member-only/mantis/view.php?id=1255"
          },
          {
            "@name":"specificationSection",
            "@content":"X3D encodings, ISO/IEC 19775-1, Part 1: Architecture and base components, Clause 42 Texture projector component, subclause 42.4.1 TextureProjector"
          },
          {
            "@name":"specificationUrl",
            "@content":"https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/textureProjector.html#TextureProjector"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/TextureProjectorComponentExample.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"20 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":[
          { "TextureProjector":
            {
              "@description":"Project a red delicious texture",
              "@direction":[-1,0,-1],
              "@fieldOfView":0.26,
              "@location":[3,3,3],
              "@upVector":[0,1,0],
              "@ambientIntensity":0,
              "@color":[1,1,1],
              "@intensity":0.7854,
              "-texture":
                { "ImageTexture":
                  {
                    "@DEF":"RedDelicious",
                    "@url":["Red_Delicious.jpg","https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/Red_Delicious.jpg","https://upload.wikimedia.org/wikipedia/commons/f/fb/Red_Delicious.jpg"]
                  }
                }
            }
          },
          { "Shape":
            {
              "-appearance":
                { "Appearance":
                  {
                    "-material":
                      { "Material":
                        {
                          "@diffuseColor":[0.5,0.5,0.5]
                        }
                      }
                  }
                },
              "-geometry":
                { "IndexedFaceSet":
                  {
                    "@coordIndex":[3,2,1,0,-1,4,5,2,3,-1,5,6,1,2,-1],
                    "@solid":false,
                    "-coord":
                      { "Coordinate":
                        {
                          "@point":[1,0,1,-1,0,1,-1,0,-1,1,0,-1,1,1,-1,-1,1,-1,-1,1,1]
                        }
                      }
                  }
                }
            }
          },
          {
            "#comment":"add additional node example for validation testing"
          },
          { "TextureProjectorParallel":
            {
              "@description":"Project a red delicious texture, parallel orthographic projection",
              "@direction":[-1,0,-1],
              "@fieldOfView":[-1.5,-1.5,1.5,1.5],
              "@location":[3,3,3],
              "@ambientIntensity":0,
              "@color":[1,1,1],
              "@intensity":0.7854,
              "@upVector":[0,1,0],
              "-texture":
                { "ImageTexture":
                  {
                    "@USE":"RedDelicious"
                  }
                }
            }
          }
        ]
    }
  }
}