{ "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":"EnvironmentalEffects",
            "@level":3
          },
          {
            "@name":"Shape",
            "@level":3
          }
        ],
        "meta": [
          {
            "@name":"title",
            "@content":"X3D4PhysicallyBasedRenderingTests.x3d"
          },
          {
            "@name":"description",
            "@content":"Test X3D version 4 nodes supporting Physically Based Rendering."
          },
          {
            "@name":"created",
            "@content":"3 September 2025"
          },
          {
            "@name":"modified",
            "@content":"2 February 2026"
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"TODO",
            "@content":"This model is under development and will be used to support X3D-Edit testing."
          },
          {
            "@name":"specificationSection",
            "@content":"X3D 4.1 Architecture, ISO/IEC 19775-1:202x draft, clause 12 Shape Component"
          },
          {
            "@name":"specificationUrl",
            "@content":"https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/shape.html"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/X3D4PhysicallyBasedRenderingTests.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"https://www.web3d.org/x3d/content/examples/license.html"
          },
          {
            "@name":"translated",
            "@content":"19 February 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":[
          {
            "#comment":"Example scene to illustrate X3D nodes and fields (XML elements and attributes)"
          },
          { "WorldInfo":
            {
              "@title":"X3D4PhysicallyBasedRenderingTests.x3d"
            }
          },
          { "NavigationInfo":
            {
            }
          },
          { "Viewpoint":
            {
              "@DEF":"WelcomeView",
              "@description":"Test model for nodes, containerField relationships",
              "@position":[0,0,8]
            }
          },
          { "TextureBackground":
            {
              "-backTexture":
                { "ImageTexture":
                  {
                    "@DEF":"TestImage",
                    "@description":"test texture",
                    "@url":["images/imageSmallSolidGreyBackground.png","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/images/imageSmallSolidGreyBackground.png"]
                  }
                },
              "-frontTexture":
                { "ImageTexture":
                  {
                    "@USE":"TestImage"
                  }
                },
              "-leftTexture":
                { "ImageTexture":
                  {
                    "@USE":"TestImage"
                  }
                },
              "-rightTexture":
                { "ImageTexture":
                  {
                    "@USE":"TestImage"
                  }
                },
              "-topTexture":
                { "ImageTexture":
                  {
                    "@USE":"TestImage"
                  }
                },
              "-bottomTexture":
                { "ImageTexture":
                  {
                    "@USE":"TestImage"
                  }
                }
            }
          },
          { "Transform":
            {
              "@translation":[-3,0,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Text":
                        {
                          "@DEF":"MaterialText",
                          "@string":["Material"],
                          "-fontStyle":
                            { "FontStyle":
                              {
                                "@DEF":"ConsistentFont",
                                "@justify":["MIDDLE","MIDDLE"],
                                "@size":0.4
                              }
                            }
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-children":[
                            {
                              "#comment":"Material default containerField='material', note Appearance can contain both material and backMaterial fields at one time"
                            }
                          ],
                          "-material":
                            { "Material":
                              {
                                "@DEF":"FrontMaterialDefaultContainerField"
                              }
                            },
                          "-backMaterial":[
                            { "Material":
                              {
                                "@DEF":"BackMaterial"
                              }
                            }
                          ],
                          "-texture":
                            { "ImageTexture":
                              {
                                "@DEF":"EarthTexture",
                                "@description":"unclouded earth",
                                "@url":["images/earth-topo.png","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/images/earth-topo.png"]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Text":
                        {
                          "@DEF":"PhysicalMaterialText",
                          "@string":["Physical","Material"],
                          "-fontStyle":
                            { "FontStyle":
                              {
                                "@USE":"ConsistentFont"
                              }
                            }
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-children":[
                            {
                              "#comment":"PhysicalMaterial default containerField='material'"
                            }
                          ],
                          "-material":
                            { "PhysicalMaterial":
                              {
                                "-baseTexture":
                                  { "ImageTexture":
                                    {
                                      "@USE":"EarthTexture"
                                    }
                                  },
                                "-emissiveTexture":
                                  { "ImageTexture":
                                    {
                                      "@USE":"EarthTexture"
                                    }
                                  },
                                "-metallicRoughnessTexture":
                                  { "ImageTexture":
                                    {
                                      "@USE":"EarthTexture"
                                    }
                                  },
                                "-normalTexture":
                                  { "ImageTexture":
                                    {
                                      "@USE":"EarthTexture"
                                    }
                                  },
                                "-occlusionTexture":
                                  { "ImageTexture":
                                    {
                                      "@USE":"EarthTexture"
                                    }
                                  }
                              }
                            },
                          "-backMaterial":[
                            { "PhysicalMaterial":
                              {
                              }
                            }
                          ]
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[3,0,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Text":
                        {
                          "@DEF":"UnlitMaterialText",
                          "@string":["Unlit","Material"],
                          "-fontStyle":
                            { "FontStyle":
                              {
                                "@USE":"ConsistentFont"
                              }
                            }
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-children":[
                            {
                              "#comment":"UnlitMaterial default containerField='material'"
                            }
                          ],
                          "-material":
                            { "UnlitMaterial":
                              {
                                "@emissiveColor":[1,1,1],
                                "@normalScale":0,
                                "-emissiveTexture":
                                  { "ImageTexture":
                                    {
                                      "@USE":"EarthTexture"
                                    }
                                  },
                                "-normalTexture":
                                  { "ImageTexture":
                                    {
                                      "@USE":"EarthTexture"
                                    }
                                  }
                              }
                            },
                          "-backMaterial":[
                            { "UnlitMaterial":
                              {
                                "@emissiveColor":[1,1,1],
                                "@normalScale":0
                              }
                            }
                          ]
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0,-2,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Text":
                        {
                          "@DEF":"TwoSidedMaterialText",
                          "@string":["TwoSidedMaterial","(deprecated)"],
                          "-fontStyle":
                            { "FontStyle":
                              {
                                "@USE":"ConsistentFont"
                              }
                            }
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "TwoSidedMaterial":
                              {
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}