This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into develop/gltf-sample-viewer-enhancements
- Loading branch information
Showing
100 changed files
with
3,693 additions
and
490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
# Box Vertex Colors | ||
|
||
A simple unit cube that uses vertex colors, stored in the `COLORS_0` attribute. The color of each vertex is given by the RGB colors that are defined by the vertex coordinates. So the vertex at (0,0,0) is black, the vertex at (1,0,0) is red, the vertex at (1,1,0) is yellow, ..., and the vertex at (1,1,1) is white. | ||
|
||
## Screenshot | ||
|
||
![screenshot](screenshot/screenshot.png) | ||
|
||
## License Information | ||
|
||
Donated by Michael Feldstein for glTF testing. | ||
Public domain ([CC0](https://creativecommons.org/publicdomain/zero/1.0/)) | ||
|
Binary file not shown.
293 changes: 74 additions & 219 deletions
293
2.0/BoxVertexColors/glTF-Embedded/BoxVertexColors.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,220 +1,75 @@ | ||
{ | ||
"accessors": [ | ||
{ | ||
"bufferView": 0, | ||
"byteOffset": 0, | ||
"componentType": 5123, | ||
"count": 36, | ||
"type": "SCALAR" | ||
}, | ||
{ | ||
"bufferView": 1, | ||
"byteOffset": 0, | ||
"componentType": 5126, | ||
"count": 24, | ||
"max": [ | ||
0.5, | ||
0.5, | ||
0.5 | ||
], | ||
"min": [ | ||
-0.5, | ||
-0.5, | ||
-0.5 | ||
], | ||
"type": "VEC3" | ||
}, | ||
{ | ||
"bufferView": 2, | ||
"byteOffset": 0, | ||
"componentType": 5126, | ||
"count": 24, | ||
"type": "VEC3" | ||
}, | ||
{ | ||
"bufferView": 3, | ||
"byteOffset": 0, | ||
"componentType": 5126, | ||
"count": 24, | ||
"type": "VEC4" | ||
}, | ||
{ | ||
"bufferView": 4, | ||
"byteOffset": 0, | ||
"componentType": 5126, | ||
"count": 24, | ||
"type": "VEC2" | ||
} | ||
], | ||
"asset": { | ||
"generator": "FBX2glTF", | ||
"version": "2.0" | ||
}, | ||
"bufferViews": [ | ||
{ | ||
"buffer": 0, | ||
"byteLength": 72, | ||
"byteOffset": 0, | ||
"target": 34963 | ||
}, | ||
{ | ||
"buffer": 0, | ||
"byteLength": 288, | ||
"byteOffset": 72, | ||
"target": 34962 | ||
}, | ||
{ | ||
"buffer": 0, | ||
"byteLength": 288, | ||
"byteOffset": 360, | ||
"target": 34962 | ||
}, | ||
{ | ||
"buffer": 0, | ||
"byteLength": 384, | ||
"byteOffset": 648, | ||
"target": 34962 | ||
}, | ||
{ | ||
"buffer": 0, | ||
"byteLength": 192, | ||
"byteOffset": 1032, | ||
"target": 34962 | ||
} | ||
], | ||
"buffers": [ | ||
{ | ||
"byteLength": 1224, | ||
"uri": "data:application/octet-stream;base64,AAABAAIAAQAAAAMABAAFAAYABwAEAAYACAAJAAoACwAJAAgADAANAA4ADQAMAA8AEAARABIAEAASABMAFAAVABYAFAAWABcAAAAAvwAAAD8AAAC/AAAAPwAAAD8AAAA/AAAAPwAAAD8AAAC/AAAAvwAAAD8AAAA/AAAAvwAAAD8AAAA/AAAAvwAAAD8AAAC/AAAAvwAAAL8AAAC/AAAAvwAAAL8AAAA/AAAAPwAAAD8AAAA/AAAAvwAAAL8AAAA/AAAAPwAAAL8AAAA/AAAAvwAAAD8AAAA/AAAAPwAAAD8AAAC/AAAAPwAAAL8AAAA/AAAAPwAAAL8AAAC/AAAAPwAAAD8AAAA/AAAAPwAAAL8AAAC/AAAAvwAAAL8AAAC/AAAAvwAAAD8AAAC/AAAAPwAAAD8AAAC/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gD6qqqo+AABAP6qqqj4AAAA/qqoqPwAAQD+qqio/AAAAP6qqqj4AAEA/qqoqPwAAgD+qqio/AACAP6qqqj4AAEA/qqqqPgAAAD+qqio/AACAPqqqKj8AAIA+AACAPwAAAD8AAIA/" | ||
} | ||
], | ||
"materials": [ | ||
{ | ||
"name": "Default", | ||
"pbrMetallicRoughness": { | ||
"baseColorFactor": [ | ||
0.800000011920929, | ||
0.800000011920929, | ||
0.800000011920929, | ||
1.0 | ||
], | ||
"metallicFactor": 0.100000001490116, | ||
"roughnessFactor": 0.990000005960464 | ||
} | ||
} | ||
], | ||
"meshes": [ | ||
{ | ||
"name": "Cube", | ||
"primitives": [ | ||
{ | ||
"attributes": { | ||
"COLOR_0": 3, | ||
"NORMAL": 2, | ||
"POSITION": 1, | ||
"TEXCOORD_0": 4 | ||
}, | ||
"indices": 0, | ||
"material": 0, | ||
"mode": 4 | ||
} | ||
] | ||
} | ||
], | ||
"nodes": [ | ||
{ | ||
"children": [ | ||
1, | ||
2, | ||
3 | ||
], | ||
"name": "RootNode", | ||
"rotation": [ | ||
0.0, | ||
0.0, | ||
0.0, | ||
1.0 | ||
], | ||
"scale": [ | ||
1.0, | ||
1.0, | ||
1.0 | ||
], | ||
"translation": [ | ||
0.0, | ||
0.0, | ||
0.0 | ||
] | ||
}, | ||
{ | ||
"name": "Mesh", | ||
"rotation": [ | ||
0.0, | ||
0.0, | ||
0.0, | ||
1.0 | ||
], | ||
"scale": [ | ||
1.0, | ||
1.0, | ||
1.0 | ||
], | ||
"translation": [ | ||
0.0, | ||
0.0, | ||
0.0 | ||
] | ||
}, | ||
{ | ||
"mesh": 0, | ||
"name": "Cube", | ||
"rotation": [ | ||
0.0, | ||
0.0, | ||
0.0, | ||
1.0 | ||
], | ||
"scale": [ | ||
1.0, | ||
1.0, | ||
1.0 | ||
], | ||
"translation": [ | ||
0.0, | ||
0.0, | ||
0.0 | ||
] | ||
}, | ||
{ | ||
"name": "Texture Group", | ||
"rotation": [ | ||
0.0, | ||
0.0, | ||
0.0, | ||
1.0 | ||
], | ||
"scale": [ | ||
1.0, | ||
1.0, | ||
1.0 | ||
], | ||
"translation": [ | ||
0.0, | ||
0.0, | ||
0.0 | ||
] | ||
} | ||
], | ||
"samplers": [ | ||
{} | ||
], | ||
"scene": 0, | ||
"scenes": [ | ||
{ | ||
"name": "Root Scene", | ||
"nodes": [ | ||
0 | ||
] | ||
} | ||
] | ||
} | ||
"accessors" : [ { | ||
"bufferView" : 0, | ||
"byteOffset" : 0, | ||
"componentType" : 5123, | ||
"count" : 36, | ||
"type" : "SCALAR", | ||
"max" : [ 23 ], | ||
"min" : [ 0 ] | ||
}, { | ||
"bufferView" : 1, | ||
"byteOffset" : 0, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"type" : "VEC3", | ||
"max" : [ 1.0, 1.0, 1.0 ], | ||
"min" : [ 0.0, 0.0, 0.0 ] | ||
}, { | ||
"bufferView" : 1, | ||
"byteOffset" : 288, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"type" : "VEC3", | ||
"max" : [ 1.0, 1.0, 1.0 ], | ||
"min" : [ -1.0, -1.0, -1.0 ] | ||
}, { | ||
"bufferView" : 1, | ||
"byteOffset" : 576, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"type" : "VEC3", | ||
"max" : [ 1.0, 1.0, 1.0 ], | ||
"min" : [ 0.0, 0.0, 0.0 ] | ||
} ], | ||
"asset" : { | ||
"generator" : "JglTF from https://github.com/javagl/JglTF", | ||
"version" : "2.0" | ||
}, | ||
"buffers" : [ { | ||
"uri" : "data:application/gltf-buffer;base64,AAACAAEAAAADAAIABAAGAAUABAAHAAYACAAKAAkACAALAAoADAAOAA0ADAAPAA4AEAASABEAEAATABIAFAAWABUAFAAXABYAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAgD8AAAAAAAAAAAAAgD8AAAAAAACAPwAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAgD8AAIA/AACAPwAAgD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| ||
"bufferViews" : [ { | ||
"name" : "indices bufferView", | ||
"buffer" : 0, | ||
"byteOffset" : 0, | ||
"byteLength" : 72, | ||
"target" : 34963 | ||
}, { | ||
"name" : "attributes bufferView", | ||
"buffer" : 0, | ||
"byteOffset" : 72, | ||
"byteLength" : 864, | ||
"byteStride" : 12, | ||
"target" : 34962 | ||
} ], | ||
"meshes" : [ { | ||
"primitives" : [ { | ||
"attributes" : { | ||
"POSITION" : 1, | ||
"NORMAL" : 2, | ||
"COLOR_0" : 3 | ||
}, | ||
"indices" : 0, | ||
"mode" : 4 | ||
} ] | ||
} ], | ||
"nodes" : [ { | ||
"mesh" : 0 | ||
} ], | ||
"scene" : 0, | ||
"scenes" : [ { | ||
"nodes" : [ 0 ] | ||
} ] | ||
} |
Oops, something went wrong.