Skip to content

Instantly share code, notes, and snippets.

@slimshader
Created May 16, 2023 06:59
Show Gist options
  • Select an option

  • Save slimshader/295346fa1d65fc784e9107300d7f9a64 to your computer and use it in GitHub Desktop.

Select an option

Save slimshader/295346fa1d65fc784e9107300d7f9a64 to your computer and use it in GitHub Desktop.
{
"asset": {
"version": "2.0"
},
"scenes": [
{
"nodes": [0]
}
],
"nodes": [
{
"mesh": 0
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0
},
"indices": 0
}
]
}
],
"accessors": [
{
"componentType": 5123, // UNSIGNED_SHORT
"count": 3,
"type": "SCALAR",
"bufferView": 0
},
{
"componentType": 5126, // FLOAT
"count": 3,
"type": "VEC3",
"bufferView": 1
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 6,
"target": 34963 // ELEMENT_ARRAY_BUFFER
},
{
"buffer": 0,
"byteOffset": 6,
"byteLength": 36,
"target": 34962 // ARRAY_BUFFER
}
],
"buffers": [
{
"byteLength": 42
}
],
"bufferData": [
{
"data": [0, 1, 0, 1, 0, 0],
"byteOffset": 0
},
{
"data": [0, 0, 0, 1, 1, 0, 1, 0, 0],
"byteOffset": 6
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment