Skip to content

Instantly share code, notes, and snippets.

@pushmatrix
Last active July 17, 2020 17:07
Show Gist options
  • Save pushmatrix/3c159dc514898188352f83ffea0be2aa to your computer and use it in GitHub Desktop.
Save pushmatrix/3c159dc514898188352f83ffea0be2aa to your computer and use it in GitHub Desktop.
Melded helmet
{
"accessors": [
{
"bufferView": 0,
"byteOffset": 0,
"count": 70074,
"componentType": 5126,
"type": "VEC3",
"min": [
-1.151152491569519,
-1.4587182998657229,
-1.2511286735534668
],
"max": [
1.151152491569519,
1.4587184190750122,
1.2511277198791504
]
},
{
"bufferView": 1,
"byteOffset": 0,
"count": 70074,
"componentType": 5126,
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 0,
"count": 70074,
"componentType": 5126,
"type": "VEC2"
},
{
"bufferView": 3,
"byteOffset": 0,
"count": 70074,
"componentType": 5125,
"type": "SCALAR"
}
],
"asset": {
"generator": "Khronos glTF Blender I/O v1.2.75",
"version": "2.0"
},
"buffers": [
{
"byteLength": 5210928,
"uri": "helmet_combined.bin"
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 840888,
"byteOffset": 0
},
{
"buffer": 0,
"byteLength": 840888,
"byteOffset": 840888
},
{
"buffer": 0,
"byteLength": 560592,
"byteOffset": 1681776
},
{
"buffer": 0,
"byteLength": 280296,
"byteOffset": 2242368
},
{
"buffer": 0,
"byteLength": 882545,
"byteOffset": 2522664
},
{
"buffer": 0,
"byteLength": 628707,
"byteOffset": 3405212
},
{
"buffer": 0,
"byteLength": 1177007,
"byteOffset": 4033920
}
],
"scene": 0,
"extensions": {
"KHR_materials_variants": {
"default_variant": "dry"
}
},
"extensionsUsed": [
"KHR_materials_variants"
],
"images": [
{
"bufferView": 4,
"mimeType": "image/jpeg",
"name": "SciFiHelmet_Normal"
},
{
"bufferView": 5,
"mimeType": "image/jpeg",
"name": "SciFiHelmet_BaseColor"
},
{
"bufferView": 6,
"mimeType": "image/jpeg",
"name": "SciFiHelmet_MetallicRoughness"
}
],
"materials": [
{
"alphaCutoff": 0.5,
"alphaMode": "OPAQUE",
"doubleSided": false,
"name": "SciFiHelmet",
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 1,
"texCoord": 0
},
"metallicFactor": 1,
"roughnessFactor": 1,
"metallicRoughnessTexture": {
"index": 2,
"texCoord": 0
}
},
"normalTexture": {
"index": 0,
"scale": 1,
"texCoord": 0
},
"emissiveFactor": [
0,
0,
0
]
},
{
"alphaCutoff": 0.5,
"alphaMode": "OPAQUE",
"doubleSided": false,
"name": "SciFiHelmet",
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 1,
"texCoord": 0
},
"metallicFactor": 0,
"roughnessFactor": 0
},
"normalTexture": {
"index": 0,
"scale": 1,
"texCoord": 0
},
"emissiveFactor": [
0,
0,
0
]
}
],
"meshes": [
{
"name": "SciFiHelmet",
"primitives": [
{
"attributes": {
"NORMAL": 1,
"POSITION": 0,
"TEXCOORD_0": 2
},
"extensions": {
"KHR_materials_variants": {
"mapping": [
{
"material": 0,
"variants": [
"dry"
]
},
{
"material": 1,
"variants": [
"wet"
]
}
]
}
},
"indices": 3,
"material": 0
}
]
}
],
"nodes": [
{
"mesh": 0,
"name": "SciFiHelmet"
}
],
"scenes": [
{
"name": "Scene",
"nodes": [
0
]
}
],
"textures": [
{
"source": 0
},
{
"source": 1
},
{
"source": 2
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment