1. Diego Cantor
  2. WebGL Beginner's Guide - Code

Source

WebGL Beginner's Guide - Code / 1727_09 / models / cars / mustang / part6.json

{
  "alias" : "manilla_manilla_aluminio_aros",
  "vertices" : [-0.891116,0.871291,-0.258013,-0.894437,0.871291,-0.334201,-0.912987,0.878055,-0.333392,-0.909665,0.878055,-0.257204,-0.87792,0.907545,-0.258588,-0.881242,0.907545,-0.334776,-0.899791,0.914309,-0.333967,-0.89647,0.914309,-0.257779,-0.91036,0.880495,-0.333507,-0.899348,0.91075,-0.333987,-0.89488,0.87485,-0.334181,-0.916511,0.880495,-0.467405,-0.901031,0.87485,-0.468079,-0.9055,0.91075,-0.467885,-0.890019,0.905105,-0.46856,-0.894387,0.871291,-0.333058,-0.912937,0.878055,-0.332249,-0.881192,0.907545,-0.333633,-0.899742,0.914309,-0.332824,-0.883868,0.905105,-0.334662,-0.891786,0.871291,-0.273397,-0.910336,0.878055,-0.272588,-0.878591,0.907545,-0.273972,-0.897141,0.914309,-0.273163,-0.917974,0.879347,-0.472552,-0.905935,0.912425,-0.473077,-0.901049,0.873175,-0.47329,-0.88901,0.906253,-0.473815,-0.918899,0.879347,-0.493775,-0.901975,0.873175,-0.494513,-0.889936,0.906253,-0.495038,-0.90686,0.912425,-0.4943,-0.901,0.87485,-0.46741,-0.916481,0.880495,-0.466735,-0.905469,0.91075,-0.467215,-0.889989,0.905105,-0.46789,-0.917529,0.87975,-0.472304,-0.90585,0.911837,-0.472813,-0.889432,0.90585,-0.473529,-0.901111,0.873763,-0.47302,-0.875723,0.903287,-0.264879,-0.876248,0.903287,-0.276915,-0.878283,0.903287,-0.323594,-0.886047,0.874922,-0.264429,-0.886572,0.874922,-0.276465,-0.888607,0.874922,-0.323144,-0.85127,0.89437,-0.265945,-0.861594,0.866005,-0.265495,-0.85383,0.89437,-0.32466,-0.864154,0.866005,-0.32421,-0.862119,0.866005,-0.277531,-0.851795,0.89437,-0.277981,-0.856161,0.896153,-0.265732,-0.866485,0.867788,-0.265281,-0.869045,0.867788,-0.323997,-0.858721,0.896153,-0.324447,-0.86701,0.867788,-0.277318,-0.856686,0.896153,-0.277768,-0.90018,0.87485,-0.378583,-0.90222,0.87485,-0.422992,-0.91566,0.880495,-0.377908,-0.9177,0.880495,-0.422317,-0.904648,0.91075,-0.378388,-0.906689,0.91075,-0.422797,-0.889168,0.905105,-0.379063,-0.891208,0.905105,-0.423472],
  "indices" : [4,0,3,4,3,7,15,1,2,15,2,16,18,6,5,18,5,17,17,5,1,17,1,15,6,18,16,6,16,2,2,8,9,2,9,6,5,19,10,5,10,1,6,9,19,6,19,5,1,10,8,1,8,2,0,20,21,0,21,3,20,15,16,20,16,21,7,23,22,7,22,4,23,18,17,23,17,22,18,23,21,18,21,16,23,7,3,23,3,21,24,26,29,24,29,28,27,25,31,27,31,30,26,27,30,26,30,29,25,24,28,25,28,31,29,30,31,29,31,28,32,12,11,32,11,33,34,13,14,34,14,35,35,14,12,35,12,32,33,11,13,33,13,34,11,36,37,11,37,13,36,24,25,36,25,37,14,38,39,14,39,12,38,27,26,38,26,39,13,37,38,13,38,14,37,25,27,37,27,38,12,39,36,12,36,11,39,26,24,39,24,36,4,22,41,4,41,40,22,17,42,22,42,41,20,0,43,20,43,44,15,20,44,15,44,45,17,15,45,17,45,42,0,4,40,0,40,43,50,47,46,50,46,51,51,48,49,51,49,50,40,52,53,40,53,43,52,46,47,52,47,53,45,54,55,45,55,42,54,49,48,54,48,55,44,56,54,44,54,45,56,50,49,56,49,54,43,53,56,43,56,44,53,47,50,53,50,56,42,55,57,42,57,41,55,48,51,55,51,57,41,57,52,41,52,40,57,51,46,57,46,52,10,58,60,10,60,8,58,59,61,58,61,60,59,32,33,59,33,61,9,62,64,9,64,19,62,63,65,62,65,64,63,34,35,63,35,65,19,64,58,19,58,10,64,65,59,64,59,58,65,35,32,65,32,59,8,60,62,8,62,9,60,61,63,60,63,62,61,33,34,61,34,63],
  "normals" : [-0.642872,-0.442274,-0.625355,-0.234718,0.744377,-0.625111,0.714225,0.344829,-0.609027,-0.642872,-0.442274,-0.625355,0.714225,0.344829,-0.609027,0.319346,-0.740074,-0.591815,-0.362102,0.926756,0.099673,-0.319346,0.740104,0.591784,0.764519,0.344829,0.544542,-0.362102,0.926756,0.099673,0.764519,0.344829,0.544542,0.905545,0.422315,-0.03946,0.421918,-0.90643,-0.018372,0.36964,-0.740074,0.561754,-0.714255,-0.344829,0.609027,0.421918,-0.90643,-0.018372,-0.714255,-0.344829,0.609027,-0.868404,-0.477371,0.134098,-0.868404,-0.477371,0.134098,-0.714255,-0.344829,0.609027,-0.319346,0.740104,0.591784,-0.868404,-0.477371,0.134098,-0.319346,0.740104,0.591784,-0.362102,0.926756,0.099673,0.36964,-0.740074,0.561754,0.421918,-0.90643,-0.018372,0.905545,0.422315,-0.03946,0.36964,-0.740074,0.561754,0.905545,0.422315,-0.03946,0.764519,0.344829,0.544542,0.764519,0.344829,0.544542,0.442183,0.195441,0.875362,0.21073,-0.400861,0.891568,0.764519,0.344829,0.544542,0.21073,-0.400861,0.891568,0.36964,-0.740074,0.561754,-0.714255,-0.344829,0.609027,-0.328867,-0.165838,0.929685,-0.146977,0.371319,0.916776,-0.714255,-0.344829,0.609027,-0.146977,0.371319,0.916776,-0.319346,0.740104,0.591784,0.36964,-0.740074,0.561754,0.21073,-0.400861,0.891568,-0.328867,-0.165838,0.929685,0.36964,-0.740074,0.561754,-0.328867,-0.165838,0.929685,-0.714255,-0.344829,0.609027,-0.319346,0.740104,0.591784,-0.146977,0.371319,0.916776,0.442183,0.195441,0.875362,-0.319346,0.740104,0.591784,0.442183,0.195441,0.875362,0.764519,0.344829,0.544542,-0.234718,0.744377,-0.625111,-0.123325,0.99234,0.005371,0.905545,0.422315,-0.03946,-0.234718,0.744377,-0.625111,0.905545,0.422315,-0.03946,0.714225,0.344829,-0.609027,-0.123325,0.99234,0.005371,-0.362102,0.926756,0.099673,0.905545,0.422315,-0.03946,-0.123325,0.99234,0.005371,0.905545,0.422315,-0.03946,0.905545,0.422315,-0.03946,0.319346,-0.740074,-0.591815,0.421918,-0.90643,-0.018372,-0.64156,-0.766533,0.027955,0.319346,-0.740074,-0.591815,-0.64156,-0.766533,0.027955,-0.642872,-0.442274,-0.625355,0.421918,-0.90643,-0.018372,0.421918,-0.90643,-0.018372,-0.868404,-0.477371,0.134098,0.421918,-0.90643,-0.018372,-0.868404,-0.477371,0.134098,-0.64156,-0.766533,0.027955,0.421918,-0.90643,-0.018372,0.421918,-0.90643,-0.018372,0.905545,0.422315,-0.03946,0.421918,-0.90643,-0.018372,0.905545,0.422315,-0.03946,0.905545,0.422315,-0.03946,0.421918,-0.90643,-0.018372,0.319346,-0.740074,-0.591815,0.714225,0.344829,-0.609027,0.421918,-0.90643,-0.018372,0.714225,0.344829,-0.609027,0.905545,0.422315,-0.03946,0.781487,0.392132,-0.485244,-0.380993,0.816065,-0.434584,-0.319346,0.740074,0.591815,0.781487,0.392132,-0.485244,-0.319346,0.740074,0.591815,0.764519,0.344829,0.544542,-0.820734,-0.392163,-0.415418,0.341716,-0.816065,-0.466079,0.36964,-0.740074,0.561754,-0.820734,-0.392163,-0.415418,0.36964,-0.740074,0.561754,-0.714225,-0.344829,0.609027,-0.380993,0.816065,-0.434584,-0.820734,-0.392163,-0.415418,-0.714225,-0.344829,0.609027,-0.380993,0.816065,-0.434584,-0.714225,-0.344829,0.609027,-0.319346,0.740074,0.591815,0.341716,-0.816065,-0.466079,0.781487,0.392132,-0.485244,0.764519,0.344829,0.544542,0.341716,-0.816065,-0.466079,0.764519,0.344829,0.544542,0.36964,-0.740074,0.561754,-0.319346,0.740074,0.591815,-0.714225,-0.344829,0.609027,0.36964,-0.740074,0.561754,-0.319346,0.740074,0.591815,0.36964,-0.740074,0.561754,0.764519,0.344829,0.544542,-0.435713,0.900052,0.003632,-0.439894,0.893674,-0.088137,0.902951,0.403333,-0.148228,-0.435713,0.900052,0.003632,0.902951,0.403333,-0.148228,0.903348,0.428785,-0.007935,0.408551,-0.912717,-0.00412,0.431288,-0.893185,-0.12711,-0.912351,-0.403821,-0.066988,0.408551,-0.912717,-0.00412,-0.912351,-0.403821,-0.066988,-0.909238,-0.41615,0.008728,-0.909238,-0.41615,0.008728,-0.912351,-0.403821,-0.066988,-0.439894,0.893674,-0.088137,-0.909238,-0.41615,0.008728,-0.439894,0.893674,-0.088137,-0.435713,0.900052,0.003632,0.903348,0.428785,-0.007935,0.902951,0.403333,-0.148228,0.431288,-0.893185,-0.12711,0.903348,0.428785,-0.007935,0.431288,-0.893185,-0.12711,0.408551,-0.912717,-0.00412,0.902951,0.403333,-0.148228,0.63863,0.20191,-0.742546,0.351909,-0.585803,-0.730033,0.902951,0.403333,-0.148228,0.351909,-0.585803,-0.730033,0.431288,-0.893185,-0.12711,0.63863,0.20191,-0.742546,0.781487,0.392132,-0.485244,0.341716,-0.816065,-0.466079,0.63863,0.20191,-0.742546,0.341716,-0.816065,-0.466079,0.351909,-0.585803,-0.730033,-0.912351,-0.403821,-0.066988,-0.700797,-0.20191,-0.684164,-0.414075,0.585803,-0.696646,-0.912351,-0.403821,-0.066988,-0.414075,0.585803,-0.696646,-0.439894,0.893674,-0.088137,-0.700797,-0.20191,-0.684164,-0.820734,-0.392163,-0.415418,-0.380993,0.816065,-0.434584,-0.700797,-0.20191,-0.684164,-0.380993,0.816065,-0.434584,-0.414075,0.585803,-0.696646,0.431288,-0.893185,-0.12711,0.351909,-0.585803,-0.730033,-0.700797,-0.20191,-0.684164,0.431288,-0.893185,-0.12711,-0.700797,-0.20191,-0.684164,-0.912351,-0.403821,-0.066988,0.351909,-0.585803,-0.730033,0.341716,-0.816065,-0.466079,-0.820734,-0.392163,-0.415418,0.351909,-0.585803,-0.730033,-0.820734,-0.392163,-0.415418,-0.700797,-0.20191,-0.684164,-0.439894,0.893674,-0.088137,-0.414075,0.585803,-0.696646,0.63863,0.20191,-0.742546,-0.439894,0.893674,-0.088137,0.63863,0.20191,-0.742546,0.902951,0.403333,-0.148228,-0.414075,0.585803,-0.696646,-0.380993,0.816065,-0.434584,0.781487,0.392132,-0.485244,-0.414075,0.585803,-0.696646,0.781487,0.392132,-0.485244,0.63863,0.20191,-0.742546,-0.642872,-0.442274,-0.625355,-0.64156,-0.766533,0.027955,-0.64156,-0.766533,0.027955,-0.642872,-0.442274,-0.625355,-0.64156,-0.766533,0.027955,-0.804865,-0.393139,-0.444472,-0.64156,-0.766533,0.027955,-0.868404,-0.477371,0.134098,-0.801141,-0.406384,0.439253,-0.64156,-0.766533,0.027955,-0.801141,-0.406384,0.439253,-0.64156,-0.766533,0.027955,-0.123325,0.99234,0.005371,-0.234718,0.744377,-0.625111,-0.48262,0.736747,-0.473495,-0.123325,0.99234,0.005371,-0.48262,0.736747,-0.473495,-0.123325,0.99234,0.005371,-0.362102,0.926756,0.099673,-0.123325,0.99234,0.005371,-0.123325,0.99234,0.005371,-0.362102,0.926756,0.099673,-0.123325,0.99234,0.005371,-0.468551,0.770165,0.432722,-0.868404,-0.477371,0.134098,-0.362102,0.926756,0.099673,-0.468551,0.770165,0.432722,-0.868404,-0.477371,0.134098,-0.468551,0.770165,0.432722,-0.801141,-0.406384,0.439253,-0.234718,0.744377,-0.625111,-0.642872,-0.442274,-0.625355,-0.804865,-0.393139,-0.444472,-0.234718,0.744377,-0.625111,-0.804865,-0.393139,-0.444472,-0.48262,0.736747,-0.473495,-0.421918,0.90643,0.018372,-0.36964,0.740074,-0.561754,-0.764519,-0.344829,-0.544542,-0.421918,0.90643,0.018372,-0.764519,-0.344829,-0.544542,-0.905576,-0.422315,0.03946,-0.905576,-0.422315,0.03946,-0.714225,-0.344829,0.609027,-0.319346,0.740074,0.591815,-0.905576,-0.422315,0.03946,-0.319346,0.740074,0.591815,-0.421918,0.90643,0.018372,-0.804865,-0.393139,-0.444472,-0.272591,-0.664388,-0.695883,0.211005,0.664388,-0.716971,-0.804865,-0.393139,-0.444472,0.211005,0.664388,-0.716971,-0.48262,0.736747,-0.473495,-0.272591,-0.664388,-0.695883,-0.764519,-0.344829,-0.544542,-0.36964,0.740074,-0.561754,-0.272591,-0.664388,-0.695883,-0.36964,0.740074,-0.561754,0.211005,0.664388,-0.716971,-0.468551,0.770165,0.432722,0.272591,0.664388,0.695883,-0.211005,-0.664388,0.716971,-0.468551,0.770165,0.432722,-0.211005,-0.664388,0.716971,-0.801141,-0.406384,0.439253,0.272591,0.664388,0.695883,-0.319346,0.740074,0.591815,-0.714225,-0.344829,0.609027,0.272591,0.664388,0.695883,-0.714225,-0.344829,0.609027,-0.211005,-0.664388,0.716971,-0.123325,0.99234,0.005371,0.34196,0.939573,-0.014893,0.272591,0.664388,0.695883,-0.123325,0.99234,0.005371,0.272591,0.664388,0.695883,-0.468551,0.770165,0.432722,0.34196,0.939573,-0.014893,-0.421918,0.90643,0.018372,-0.319346,0.740074,0.591815,0.34196,0.939573,-0.014893,-0.319346,0.740074,0.591815,0.272591,0.664388,0.695883,-0.48262,0.736747,-0.473495,0.211005,0.664388,-0.716971,0.34196,0.939573,-0.014893,-0.48262,0.736747,-0.473495,0.34196,0.939573,-0.014893,-0.123325,0.99234,0.005371,0.211005,0.664388,-0.716971,-0.36964,0.740074,-0.561754,-0.421918,0.90643,0.018372,0.211005,0.664388,-0.716971,-0.421918,0.90643,0.018372,0.34196,0.939573,-0.014893,-0.801141,-0.406384,0.439253,-0.211005,-0.664388,0.716971,-0.34196,-0.939573,0.014893,-0.801141,-0.406384,0.439253,-0.34196,-0.939573,0.014893,-0.64156,-0.766533,0.027955,-0.211005,-0.664388,0.716971,-0.714225,-0.344829,0.609027,-0.905576,-0.422315,0.03946,-0.211005,-0.664388,0.716971,-0.905576,-0.422315,0.03946,-0.34196,-0.939573,0.014893,-0.64156,-0.766533,0.027955,-0.34196,-0.939573,0.014893,-0.272591,-0.664388,-0.695883,-0.64156,-0.766533,0.027955,-0.272591,-0.664388,-0.695883,-0.804865,-0.393139,-0.444472,-0.34196,-0.939573,0.014893,-0.905576,-0.422315,0.03946,-0.764519,-0.344829,-0.544542,-0.34196,-0.939573,0.014893,-0.764519,-0.344829,-0.544542,-0.272591,-0.664388,-0.695883,-0.146977,0.371319,0.916776,-0.4073,0.912656,0.033204,0.906217,0.416181,-0.074374,-0.146977,0.371319,0.916776,0.906217,0.416181,-0.074374,0.442183,0.195441,0.875362,-0.4073,0.912656,0.033204,-0.408551,0.912717,0.00412,0.909238,0.41615,-0.008728,-0.4073,0.912656,0.033204,0.909238,0.41615,-0.008728,0.906217,0.416181,-0.074374,-0.408551,0.912717,0.00412,-0.435713,0.900052,0.003632,0.903348,0.428785,-0.007935,-0.408551,0.912717,0.00412,0.903348,0.428785,-0.007935,0.909238,0.41615,-0.008728,0.21073,-0.400861,0.891568,0.434126,-0.900113,-0.036225,-0.900327,-0.428724,0.074709,0.21073,-0.400861,0.891568,-0.900327,-0.428724,0.074709,-0.328867,-0.165838,0.929685,0.434126,-0.900113,-0.036225,0.435713,-0.900052,-0.003632,-0.903348,-0.428785,0.007935,0.434126,-0.900113,-0.036225,-0.903348,-0.428785,0.007935,-0.900327,-0.428724,0.074709,0.435713,-0.900052,-0.003632,0.408551,-0.912717,-0.00412,-0.909238,-0.41615,0.008728,0.435713,-0.900052,-0.003632,-0.909238,-0.41615,0.008728,-0.903348,-0.428785,0.007935,-0.328867,-0.165838,0.929685,-0.900327,-0.428724,0.074709,-0.4073,0.912656,0.033204,-0.328867,-0.165838,0.929685,-0.4073,0.912656,0.033204,-0.146977,0.371319,0.916776,-0.900327,-0.428724,0.074709,-0.903348,-0.428785,0.007935,-0.408551,0.912717,0.00412,-0.900327,-0.428724,0.074709,-0.408551,0.912717,0.00412,-0.4073,0.912656,0.033204,-0.903348,-0.428785,0.007935,-0.909238,-0.41615,0.008728,-0.435713,0.900052,0.003632,-0.903348,-0.428785,0.007935,-0.435713,0.900052,0.003632,-0.408551,0.912717,0.00412,0.442183,0.195441,0.875362,0.906217,0.416181,-0.074374,0.434126,-0.900113,-0.036225,0.442183,0.195441,0.875362,0.434126,-0.900113,-0.036225,0.21073,-0.400861,0.891568,0.906217,0.416181,-0.074374,0.909238,0.41615,-0.008728,0.435713,-0.900052,-0.003632,0.906217,0.416181,-0.074374,0.435713,-0.900052,-0.003632,0.434126,-0.900113,-0.036225,0.909238,0.41615,-0.008728,0.903348,0.428785,-0.007935,0.408551,-0.912717,-0.00412,0.909238,0.41615,-0.008728,0.408551,-0.912717,-0.00412,0.435713,-0.900052,-0.003632],
  "Ni" : 1.00000,
  "Ka" : [0.00000,0.00000,0.00000],
  "d" : 1.00000,
  "Kd" : [0.80000,0.80000,0.80000],
  "illum" : 2,
  "Ks" : [1.00000,1.00000,1.00000],
  "Ns" : 96.07843
}