Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test new automated reference section #1899

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,654 changes: 826 additions & 828 deletions specification/2.0/README.md

Large diffs are not rendered by default.

2,973 changes: 2,973 additions & 0 deletions specification/2.0/REFERENCE.adoc

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion specification/2.0/schema/accessor.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Accessor",
"title": "accessor",
"type": "object",
"description": "A typed view into a bufferView. A bufferView contains raw binary data. An accessor provides a typed view into a bufferView or a subset of a bufferView similar to how WebGL's `vertexAttribPointer()` defines an attribute in a buffer.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Accessor Sparse Indices",
"title": "accessor.sparse.indices",
"type": "object",
"description": "Indices of those attributes that deviate from their initialization value.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/accessor.sparse.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Accessor Sparse",
"title": "accessor.sparse",
"type": "object",
"description": "Sparse storage of attributes that deviate from their initialization value.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Accessor Sparse Values",
"title": "accessor.sparse.values",
"type": "object",
"description": "Array of size `accessor.sparse.count` times number of components storing the displaced accessor attributes pointed by `accessor.sparse.indices`.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/animation.channel.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Animation Channel",
"title": "animation.channel",
"type": "object",
"description": "Targets an animation's sampler at a node's property.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Animation Channel Target",
"title": "animation.channel.target",
"type": "object",
"description": "The index of the node and TRS property that an animation channel targets.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/animation.sampler.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Animation Sampler",
"title": "animation.sampler",
"type": "object",
"description": "Combines input and output accessors with an interpolation algorithm to define a keyframe graph (but not its target).",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/animation.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Animation",
"title": "animation",
"type": "object",
"description": "A keyframe animation.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/asset.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Asset",
"title": "asset",
"type": "object",
"description": "Metadata about the glTF asset.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/buffer.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Buffer",
"title": "buffer",
"type": "object",
"description": "A buffer points to binary geometry, animation, or skins.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/bufferView.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Buffer View",
"title": "bufferView",
"type": "object",
"description": "A view into a buffer generally representing a subset of the buffer.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/camera.orthographic.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Camera Orthographic",
"title": "camera.orthographic",
"type": "object",
"description": "An orthographic camera containing properties to create an orthographic projection matrix.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/camera.perspective.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Camera Perspective",
"title": "camera.perspective",
"type": "object",
"description": "A perspective camera containing properties to create a perspective projection matrix.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/camera.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Camera",
"title": "camera",
"type": "object",
"description": "A camera's projection. A node can reference a camera to apply a transform to place the camera in the scene.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/extension.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Extension",
"title": "extension",
"type": "object",
"description": "Dictionary object with extension-specific objects.",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/extras.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Extras",
"title": "extras",
"description": "Application-specific data.",
"gltf_sectionDescription": "**Implementation Note:** Although extras may have any type, it is common for applications to store and access custom data as key/value pairs. As best practice, extras should be an Object rather than a primitive value for best portability."
}
2 changes: 1 addition & 1 deletion specification/2.0/schema/image.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Image",
"title": "image",
"type": "object",
"description": "Image data used to create a texture. Image can be referenced by URI or `bufferView` index. `mimeType` is required in the latter case.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Material Normal Texture Info",
"title": "material.normalTextureInfo",
"type": "object",
"allOf": [ { "$ref": "textureInfo.schema.json" } ],
"properties": {
Expand All @@ -15,4 +15,4 @@
"extensions": { },
"extras": { }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Material Occlusion Texture Info",
"title": "material.occlusionTextureInfo",
"type": "object",
"allOf": [ { "$ref": "textureInfo.schema.json" } ],
"properties": {
Expand All @@ -17,4 +17,4 @@
"extensions": { },
"extras": { }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Material PBR Metallic Roughness",
"title": "material.pbrMetallicRoughness",
"type": "object",
"description": "A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down Expand Up @@ -47,4 +47,4 @@
"extensions": { },
"extras": { }
}
}
}
2 changes: 1 addition & 1 deletion specification/2.0/schema/material.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Material",
"title": "material",
"type": "object",
"description": "The material appearance of a primitive.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/mesh.primitive.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Mesh Primitive",
"title": "mesh.primitive",
"type": "object",
"description": "Geometry to be rendered with the given material.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/mesh.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Mesh",
"title": "mesh",
"type": "object",
"description": "A set of primitives to be rendered. A node can contain one mesh. A node's transform places the mesh in the scene.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/node.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Node",
"title": "node",
"type": "object",
"description": "A node in the node hierarchy. When the node contains `skin`, all `mesh.primitives` must contain `JOINTS_0` and `WEIGHTS_0` attributes. A node can have either a `matrix` or any combination of `translation`/`rotation`/`scale` (TRS) properties. TRS properties are converted to matrices and postmultiplied in the `T * R * S` order to compose the transformation matrix; first the scale is applied to the vertices, then the rotation, and then the translation. If none are provided, the transform is the identity. When a node is targeted for animation (referenced by an animation.channel.target), only TRS properties may be present; `matrix` will not be present.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/sampler.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Sampler",
"title": "sampler",
"type": "object",
"description": "Texture sampler properties for filtering and wrapping modes.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/scene.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Scene",
"title": "scene",
"type": "object",
"description": "The root nodes of a scene.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/skin.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Skin",
"title": "skin",
"type": "object",
"description": "Joints and matrices defining a skin.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
2 changes: 1 addition & 1 deletion specification/2.0/schema/texture.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Texture",
"title": "texture",
"type": "object",
"description": "A texture and its sampler.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
Expand Down
4 changes: 2 additions & 2 deletions specification/2.0/schema/textureInfo.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Texture Info",
"title": "textureInfo",
"type": "object",
"description": "Reference to a texture.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
Expand All @@ -20,4 +20,4 @@
"extras": { }
},
"required": [ "index" ]
}
}