Skip to content

Instantly share code, notes, and snippets.

@feiss
Created November 8, 2016 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feiss/1e503b585e61384a451c82aa4fd1f25e to your computer and use it in GitHub Desktop.
Save feiss/1e503b585e61384a451c82aa4fd1f25e to your computer and use it in GitHub Desktop.
triangle.gltf exported from blender
{
"accessors": {
"Plane_buffer_accessor_0": {
"bufferView": "Plane_buffer_view_0",
"byteOffset": 0,
"byteStride": 24,
"componentType": 5126,
"count": 3,
"max": [
1.0,
1.0,
1.0
],
"min": [
0,
0,
0
],
"type": "VEC3"
},
"Plane_buffer_accessor_1": {
"bufferView": "Plane_buffer_view_0",
"byteOffset": 12,
"byteStride": 24,
"componentType": 5126,
"count": 3,
"max": [
0,
0,
0
],
"min": [
-0.5773502588272095,
-0.5773502588272095,
-0.5773502588272095
],
"type": "VEC3"
},
"Plane_buffer_accessor_2": {
"bufferView": "Plane_buffer_view_1",
"byteOffset": 0,
"byteStride": 2,
"componentType": 5123,
"count": 3,
"max": [
2
],
"min": [
0
],
"type": "SCALAR"
}
},
"asset": {
"profile": {
"api": "WebGL",
"version": "1.0.3"
},
"version": "1.0"
},
"bufferViews": {
"Plane_buffer_view_0": {
"buffer": "Plane_buffer",
"byteLength": 72,
"byteOffset": 0,
"target": 34962
},
"Plane_buffer_view_1": {
"buffer": "Plane_buffer",
"byteLength": 6,
"byteOffset": 72,
"target": 34963
}
},
"buffers": {
"Plane_buffer": {
"byteLength": 78,
"type": "arraybuffer",
"uri": "data:text/plain;base64,AACAPwAAAAAAAAAAOs0TvzrNE786zRO/AAAAAAAAgD8AAAAAOs0TvzrNE786zRO/AAAAAAAAAAAAAIA/Os0TvzrNE786zRO/AQAAAAIA"
}
},
"extensions": {
"BLENDER_actions": {
"actions": {}
}
},
"extensionsUsed": [
"BLENDER_actions",
"BLENDER_physics"
],
"extras": {
"lights": {}
},
"materials": {
"Material": {
"values": {
"ambient": [
1.0,
1.0,
1.0,
1.0
],
"diffuse": [
0.29379013180732727,
0.29379013180732727,
0.29379013180732727,
1.0
],
"emission": [
0.0,
0.0,
0.0,
1.0
],
"shininess": 50,
"specular": [
0.5,
0.5,
0.5,
1.0
],
"textures": [],
"uv_layers": []
}
}
},
"meshes": {
"Plane": {
"name": "Plane",
"primitives": [
{
"attributes": {
"NORMAL": "Plane_buffer_accessor_1",
"POSITION": "Plane_buffer_accessor_0"
},
"indices": "Plane_buffer_accessor_2",
"material": "Material",
"mode": 4
}
]
}
},
"nodes": {
"Plane": {
"children": [],
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"meshes": [
"Plane"
],
"name": "Plane"
}
},
"samplers": {
"default": {}
},
"scene": "Scene",
"scenes": {
"Scene": {
"extras": {
"active_camera": "Camera",
"background_color": [
0.05087608844041824,
0.05087608844041824,
0.05087608844041824
],
"frames_per_second": 24
},
"nodes": [
"Plane"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment