Source

WebGL Beginner's Guide - Code / 1727_10 / models / geometry / flag.json

Full commit
1
2
3
4
5
{
  "vertices" : [0.25,5.0,0.0,0.25,0.0,0.0,0.176776,0.0,-0.176776,0.176776,5.0,-0.176776,-5.1276e-11,0.0,-0.25,-5.1276e-11,5.0,-0.25,-0.176776,0.0,-0.176776,-0.176776,5.0,-0.176776,-0.25,0.0,1.02552e-10,-0.25,5.0,1.02552e-10,-0.176776,0.0,0.176776,-0.176776,5.0,0.176776,1.53828e-10,0.0,0.25,1.53828e-10,5.0,0.25,0.176776,0.0,0.176776,0.176776,5.0,0.176776,0.176776,5.0,-0.176776,-5.1276e-11,5.0,-0.25,0.25,5.0,0.0,0.176776,5.0,0.176776,1.53828e-10,5.0,0.25,-0.176776,5.0,0.176776,-0.176776,5.0,-0.176776,-0.25,5.0,1.02552e-10,-0.176776,0.0,0.176776,-0.25,0.0,1.02552e-10,1.53828e-10,0.0,0.25,-0.176776,0.0,-0.176776,-5.1276e-11,0.0,-0.25,0.176776,0.0,-0.176776,0.176776,0.0,0.176776,0.25,0.0,0.0,0.650825,-6.5944e-08,1.35145,0.601285,0.17198,1.35145,0.0,-6.5944e-08,1.5,0.460203,0.317777,1.35145,0.24906,0.415196,1.35145,-2.84485e-08,0.449404,1.35145,-0.24906,0.415196,1.35145,-0.460204,0.317777,1.35145,-0.601285,0.17198,1.35145,-0.650825,-1.05233e-07,1.35145,0.650825,-6.5944e-08,-1.35145,0.0,-6.5944e-08,-1.5,0.601285,0.17198,-1.35145,0.460203,0.317777,-1.35145,0.24906,0.415195,-1.35145,-2.84485e-08,0.449404,-1.35145,-0.24906,0.415195,-1.35145,-0.460203,0.317777,-1.35145,-0.601285,0.17198,-1.35145,-0.650825,-1.05233e-07,-1.35145,1.17274,-6.5944e-08,0.935235,1.08347,0.309896,0.935235,1.46239,-6.5944e-08,0.333782,1.35108,0.386435,0.333782,1.46239,-6.5944e-08,-0.333782,1.35108,0.386435,-0.333782,1.17274,-6.5944e-08,-0.935235,1.08347,0.309896,-0.935235,0.82926,0.572615,0.935235,1.03407,0.71404,0.333782,1.03407,0.71404,-0.333782,0.829255,0.572615,-0.935235,0.448791,0.748155,0.935235,0.559635,0.932935,0.333782,0.559635,0.932935,-0.333782,0.448791,0.748155,-0.935235,-5.12625e-08,0.8098,0.935235,-6.3923e-08,1.0098,0.333782,-6.3923e-08,1.0098,-0.333782,-5.12625e-08,0.8098,-0.935235,-0.448791,0.748155,0.935235,-0.559635,0.932935,0.333782,-0.559635,0.932935,-0.333782,-0.448791,0.748155,-0.935235,-0.82926,0.572615,0.935235,-1.03407,0.71404,0.333782,-1.03407,0.71404,-0.333782,-0.82926,0.572615,-0.935235,-1.08347,0.309896,0.935235,-1.35108,0.386435,0.333782,-1.35108,0.386435,-0.333782,-1.08347,0.309896,-0.935235,-1.17274,-1.36739e-07,0.935235,-1.46239,-1.54224e-07,0.333782,-1.46239,-1.54224e-07,-0.333782,-1.17274,-1.36739e-07,-0.935235,-0.309743,6.1407,0.0477631,-0.309743,5.8688,-0.313451,-0.309743,5.8688,0.408977,-0.309743,5.2123,0.558595,-0.309743,5.2123,-0.46307,-0.309743,4.55586,0.408977,-0.309743,4.55586,-0.313451,-0.309743,4.28394,0.0477631,2.41736,5.2123,0.0477631],
  "indices" : [0,1,2,0,2,3,3,2,4,3,4,5,5,4,6,5,6,7,7,6,8,7,8,9,9,8,10,9,10,11,11,10,12,11,12,13,13,12,14,13,14,15,15,14,1,15,1,0,16,17,18,18,17,19,19,17,20,20,17,21,17,22,21,23,21,22,24,25,26,25,27,26,27,28,26,28,29,26,26,29,30,31,30,29,32,33,34,33,35,34,35,36,34,36,37,34,37,38,34,38,39,34,39,40,34,40,41,34,42,43,44,44,43,45,45,43,46,46,43,47,47,43,48,48,43,49,49,43,50,50,43,51,32,52,53,32,53,33,52,54,55,52,55,53,54,56,57,54,57,55,56,58,59,56,59,57,58,42,44,58,44,59,33,53,60,33,60,35,53,55,61,53,61,60,55,57,62,55,62,61,57,59,63,57,63,62,59,44,45,59,45,63,35,60,64,35,64,36,60,61,65,60,65,64,61,62,66,61,66,65,62,63,67,62,67,66,63,45,46,63,46,67,36,64,68,36,68,37,64,65,69,64,69,68,65,66,70,65,70,69,66,67,71,66,71,70,67,46,47,67,47,71,37,68,72,37,72,38,68,69,73,68,73,72,69,70,74,69,74,73,70,71,75,70,75,74,71,47,48,71,48,75,38,72,76,38,76,39,72,73,77,72,77,76,73,74,78,73,78,77,74,75,79,74,79,78,75,48,49,75,49,79,39,76,80,39,80,40,76,77,81,76,81,80,77,78,82,77,82,81,78,79,83,78,83,82,79,49,50,79,50,83,40,80,84,40,84,41,80,81,85,80,85,84,81,82,86,81,86,85,82,83,87,82,87,86,83,50,51,83,51,87,88,89,90,90,89,91,89,92,91,91,92,93,92,94,93,95,93,94,96,95,94,96,94,92,96,92,89,96,89,88,96,88,90,96,90,91,96,91,93,96,93,95],
  "diffuse" : [0.1,0.7,0.1,1.0]
}