{ "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": {
        "meta": [
          {
            "@name":"title",
            "@content":"PrototypesPlus.x3d"
          },
          {
            "@name":"description",
            "@content":"X3D encodings example: using an externally defined prototype."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman and Joe Williams"
          },
          {
            "@name":"created",
            "@content":"1 June 2002"
          },
          {
            "@name":"modified",
            "@content":"28 September 2025"
          },
          {
            "@name":"specificationSection",
            "@content":"X3D encodings, ISO/IEC 19776-1.3, Part 1: XML encoding, Annex C.7 Prototypes and alternate representations"
          },
          {
            "@name":"specificationUrl",
            "@content":"https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19776-1v4.0-CD/Part01/examples.html#PrototyesAndAlternateReps"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/PrototypesPlus.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":[
          {
            "#comment":"external protype definition"
          },
          { "WorldInfo":
            {
              "@title":"PrototypesPlus.x3d"
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"RefractiveMaterial",
              "@url":["RefractiveMaterial.x3d#RefractiveMaterial","https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/RefractiveMaterial.x3d#RefractiveMaterial","urn:inet:foo.com:types:RefractiveMaterial","RefractiveMaterial.wrl#RefractiveMaterial","https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/RefractiveMaterial.wrl#RefractiveMaterial"],
              "field": [
                {
                  "@name":"ambientIntensity",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                },
                {
                  "@name":"diffuseColor",
                  "@accessType":"inputOutput",
                  "@type":"SFColor"
                },
                {
                  "@name":"specularColor",
                  "@accessType":"inputOutput",
                  "@type":"SFColor"
                },
                {
                  "@name":"emissiveColor",
                  "@accessType":"inputOutput",
                  "@type":"SFColor"
                },
                {
                  "@name":"shininess",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                },
                {
                  "@name":"transparency",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                },
                {
                  "@name":"indexOfRefraction",
                  "@accessType":"inputOutput",
                  "@type":"SFFloat"
                }
              ]
            }
          },
          {
            "#comment":"renderable scene graph begins here"
          },
          { "Shape":
            {
              "-geometry":
                { "Sphere":
                  {
                  }
                },
              "-appearance":
                { "Appearance":
                  {
                    "-material":
                      { "ProtoInstance":
                        {
                          "@name":"RefractiveMaterial",
                          "fieldValue": [
                            {
                              "@name":"transparency",
                              "@value":0.1
                            },
                            {
                              "@name":"ambientIntensity",
                              "@value":0.2
                            },
                            {
                              "@name":"diffuseColor",
                              "@value":[1,0,0]
                            },
                            {
                              "@name":"indexOfRefraction",
                              "@value":0.4
                            }
                          ]
                        }
                      }
                  }
                }
            }
          }
        ]
    }
  }
}