Skip to content

Instantly share code, notes, and snippets.

@5chdn
Last active April 19, 2016 12:22
Show Gist options
  • Save 5chdn/e9967987b3fe81822d0dc3eb77670ebe to your computer and use it in GitHub Desktop.
Save 5chdn/e9967987b3fe81822d0dc3eb77670ebe to your computer and use it in GitHub Desktop.
pseudo gltf logic as json
{
"type":"ArrayBuffers",
"scope":"WebGL",
"vertexSize":2,
"indexSize":1,
"colorSize":4,
"worldSize":1,
"zoom":0,
"x":0,
"y":0,
"buffers":{
"vertices":[
0.537167251110077,
0.327970743179321,
0.537167310714722,
0.327971100807190,
0.537167251110077,
0.327970743179321,
0.537167191505432,
0.327970743179321,
0.537167191505432,
0.327970743179321,
0.537165760993958,
0.327970921993256,
0.537165939807892,
0.327972143888473,
0.537167310714722,
0.327972024679184,
0.537164211273193,
0.327973991632462,
0.537165582180023,
0.327973812818527,
0.537165403366089,
0.327972203493118,
0.537165760993958,
0.327970921993256,
0.537165224552155,
0.327970981597900,
0.537165403366089,
0.327972203493118,
0.537165939807892,
0.327972143888473,
0.537165224552155,
0.327970981597900,
0.537161707878113,
0.327971369028091,
0.537165224552155,
0.327970981597900,
0.537165403366089,
0.327972203493118,
0.537165224552155,
0.327970981597900,
0.537165045738220,
0.327969580888748,
0.537161529064178,
0.327969998121262,
0.537161707878113,
0.327971369028091,
0.537161946296692,
0.327973276376724,
0.537162005901337,
0.327974230051041,
0.537164211273193,
0.327973991632462,
0.537161827087402,
0.327972590923309,
0.537165403366089,
0.327972203493118,
0.537161827087402,
0.327972590923309,
0.537161946296692,
0.327973276376724,
0.537161767482758,
0.327971965074539,
0.537161827087402,
0.327972590923309,
0.537161767482758,
0.327971965074539,
0.537160575389862,
0.327972114086151,
0.537161707878113,
0.327971369028091,
0.537161767482758,
0.327971965074539
],
"indices":[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
20,
21,
21,
22,
23,
24,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35
],
"colors":[
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1,
0.1921568661928177,
0.21176470816135406,
0.5843137502670288,
1
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment