{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Figure31_2MaterialPrototypesLibrary.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 31.2, 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/ch31/31fig02.htm"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"27 September 2000"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"description",
            "@content":"An external file containing a material library with the WallColor-node-type definition."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_2MaterialPrototypesLibrary.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, 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":"Figure31_2MaterialPrototypesLibrary.x3d"
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Aqua",
              "ProtoBody": {
                  "-children":[
                    { "Material":
                      {
                        "@diffuseColor":[0,0.6,1]
                      }
                    }
                  ]
              }
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Gold",
              "ProtoBody": {
                  "-children":[
                    { "Material":
                      {
                        "@ambientIntensity":0.4,
                        "@diffuseColor":[0.22,0.15,0],
                        "@shininess":0.16,
                        "@specularColor":[0.71,0.70,0.56]
                      }
                    }
                  ]
              }
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Aluminum",
              "ProtoBody": {
                  "-children":[
                    { "Material":
                      {
                        "@ambientIntensity":0.3,
                        "@diffuseColor":[0.3,0.3,0.5],
                        "@shininess":0.1,
                        "@specularColor":[0.7,0.7,0.8]
                      }
                    }
                  ]
              }
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Copper",
              "ProtoBody": {
                  "-children":[
                    { "Material":
                      {
                        "@ambientIntensity":0.26,
                        "@diffuseColor":[0.30,0.11,0],
                        "@shininess":0.08,
                        "@specularColor":[0.75,0.33,0]
                      }
                    }
                  ]
              }
            }
          },
          {
            "#comment":"It is a good practice to include default message linking to an example scene, in case a user tries to view this Prototype library directly."
          },
          { "Anchor":
            {
              "@description":"Figure31_3MaterialExternalPrototypes",
              "@url":["Figure31_3MaterialExternalPrototypes.x3d","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_3MaterialExternalPrototypes.x3d","Figure31_3MaterialExternalPrototypes.wrl","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_3MaterialExternalPrototypes.wrl"],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Text":
                        {
                          "@string":["Figure31_2MaterialPrototypesLibrary","contains prototype definitions","Click on text to see these Materials in","Figure31_3MaterialExternalPrototypes"],
                          "-fontStyle":
                            { "FontStyle":
                              {
                                "@justify":["MIDDLE","MIDDLE"],
                                "@size":0.5
                              }
                            }
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0,0.6,0.6]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}