Source

WebGL Beginner's Guide - Code / 1727_09 / models / cars / bmw / part4.json

Full commit
{
  "alias" : "Cooler_Plane.002_chrome_blue",
  "vertices" : [0.389852,0.469553,2.466433,-0.389852,0.469553,2.466433,0.397564,0.469553,2.464451,-0.397564,0.469553,2.464451,0.397564,0.585916,2.455467,-0.397564,0.585916,2.455467,0.389852,0.585916,2.457573,-0.389852,0.585916,2.457573,0.389852,0.585916,2.472832,-0.389852,0.585916,2.472832,0.397564,0.585916,2.470726,-0.397564,0.585916,2.470726,0.397564,0.469553,2.479711,-0.397564,0.469553,2.479711,0.389852,0.469553,2.481692,-0.389852,0.469553,2.481692,0.370778,0.449525,2.488537,-0.370778,0.449525,2.488537,0.37849,0.449525,2.486413,-0.37849,0.449525,2.486413,0.37849,0.585916,2.476071,-0.37849,0.585916,2.476071,0.370778,0.585916,2.478356,-0.370778,0.585916,2.478356,0.370778,0.585916,2.463096,-0.370778,0.585916,2.463096,0.37849,0.585916,2.460811,-0.37849,0.585916,2.460811,0.37849,0.449525,2.471154,-0.37849,0.449525,2.471154,0.370778,0.449525,2.473278,-0.370778,0.449525,2.473278,0.352657,0.444611,2.478879,-0.352657,0.444611,2.478879,0.360369,0.444611,2.476622,-0.360369,0.444611,2.476622,0.360369,0.585916,2.466285,-0.360369,0.585916,2.466285,0.352657,0.585916,2.46872,-0.352657,0.585916,2.46872,0.352657,0.585916,2.483979,-0.352657,0.585916,2.483979,0.360369,0.585916,2.481544,-0.360369,0.585916,2.481544,0.360369,0.444611,2.491882,-0.360369,0.444611,2.491882,0.352657,0.444611,2.494139,-0.352657,0.444611,2.494139,0.334537,0.441895,2.499844,-0.334537,0.441895,2.499844,0.342248,0.441895,2.497469,-0.342248,0.441895,2.497469,0.342248,0.585916,2.487358,-0.342248,0.585916,2.487358,0.334537,0.585916,2.489924,-0.334537,0.585916,2.489924,0.334537,0.585916,2.474664,-0.334537,0.585916,2.474664,0.342248,0.585916,2.472098,-0.342248,0.585916,2.472098,0.342248,0.441895,2.482209,-0.342248,0.441895,2.482209,0.334537,0.441895,2.484584,-0.334537,0.441895,2.484584,0.316416,0.437432,2.49064,-0.316416,0.437432,2.49064,0.324128,0.437432,2.488168,-0.324128,0.437432,2.488168,0.324128,0.58561,2.478219,-0.324128,0.58561,2.478219,0.316416,0.58561,2.480896,-0.316416,0.58561,2.480896,0.316416,0.58561,2.496156,-0.316416,0.58561,2.496156,0.324128,0.58561,2.493478,-0.324128,0.58561,2.493478,0.324128,0.437432,2.503428,-0.324128,0.437432,2.503428,0.316416,0.437432,2.505899,-0.316416,0.437432,2.505899,0.297342,0.43367,2.512405,-0.297342,0.43367,2.512405,0.305053,0.43367,2.50985,-0.305053,0.43367,2.50985,0.305053,0.585749,2.50017,-0.305053,0.585749,2.50017,0.297342,0.585749,2.502944,-0.297342,0.585749,2.502944,0.297342,0.585749,2.487684,-0.297342,0.585749,2.487684,0.305053,0.585749,2.48491,-0.305053,0.585749,2.48491,0.305053,0.43367,2.49459,-0.305053,0.43367,2.49459,0.297342,0.43367,2.497145,-0.297342,0.43367,2.497145,0.278267,0.428043,2.50391,-0.278267,0.428043,2.50391,0.285979,0.428043,2.501294,-0.285979,0.428043,2.501294,0.285979,0.585749,2.491831,-0.285979,0.585749,2.491831,0.278267,0.585749,2.49468,-0.278267,0.585749,2.49468,0.278267,0.585749,2.509939,-0.278267,0.585749,2.509939,0.285979,0.585749,2.50709,-0.285979,0.585749,2.50709,0.285979,0.428043,2.516553,-0.285979,0.428043,2.516553,0.278267,0.428043,2.51917,-0.278267,0.428043,2.51917,0.221044,0.426387,2.53914,-0.221044,0.426387,2.53914,0.228756,0.426387,2.536437,-0.228756,0.426387,2.536437,0.228756,0.583629,2.528721,-0.228756,0.583629,2.528721,0.221044,0.583629,2.531665,-0.221044,0.583629,2.531665,0.221044,0.583629,2.516405,-0.221044,0.583629,2.516405,0.228756,0.583629,2.513462,-0.228756,0.583629,2.513462,0.228756,0.426387,2.521177,-0.228756,0.426387,2.521177,0.221044,0.426387,2.52388,-0.221044,0.426387,2.52388,0.240119,0.426387,2.517199,-0.240119,0.426387,2.517199,0.24783,0.426387,2.514506,-0.24783,0.426387,2.514506,0.24783,0.583629,2.506196,-0.24783,0.583629,2.506196,0.240119,0.583629,2.509129,-0.240119,0.583629,2.509129,0.240119,0.583629,2.524389,-0.240119,0.583629,2.524389,0.24783,0.583629,2.521456,-0.24783,0.583629,2.521456,0.24783,0.426387,2.529766,-0.24783,0.426387,2.529766,0.240119,0.426387,2.532459,-0.240119,0.426387,2.532459,0.259193,0.427717,2.525747,-0.259193,0.427717,2.525747,0.266905,0.427717,2.523082,-0.266905,0.427717,2.523082,0.266905,0.584418,2.514226,-0.266905,0.584418,2.514226,0.259193,0.584418,2.517128,-0.259193,0.584418,2.517128,0.259193,0.584418,2.501868,-0.259193,0.584418,2.501868,0.266905,0.584418,2.498967,-0.266905,0.584418,2.498967,0.266905,0.427717,2.507823,-0.266905,0.427717,2.507823,0.259193,0.427717,2.510488,-0.259193,0.427717,2.510488,0.202924,0.425415,2.530258,-0.202924,0.425415,2.530258,0.210635,0.425415,2.527566,-0.210635,0.425415,2.527566,0.210635,0.581917,2.520424,-0.210635,0.581917,2.520424,0.202924,0.581917,2.523356,-0.202924,0.581917,2.523356,0.202924,0.581917,2.538615,-0.202924,0.581917,2.538615,0.210635,0.581917,2.535683,-0.210635,0.581917,2.535683,0.210635,0.425415,2.542825,-0.210635,0.425415,2.542825,0.202924,0.425415,2.545518,-0.202924,0.425415,2.545518,0.183849,0.425277,2.552136,-0.183849,0.425277,2.552136,0.191561,0.425277,2.549473,-0.191561,0.425277,2.549473,0.191561,0.582056,2.542912,-0.191561,0.582056,2.542912,0.183849,0.582056,2.545814,-0.183849,0.582056,2.545814,0.183849,0.582056,2.530554,-0.183849,0.582056,2.530554,0.191561,0.582056,2.527653,-0.191561,0.582056,2.527653,0.191561,0.425277,2.534213,-0.191561,0.425277,2.534213,0.183849,0.425277,2.536876,-0.183849,0.425277,2.536876,0.164775,0.425277,2.543384,-0.164775,0.425277,2.543384,0.172487,0.425277,2.540769,-0.172487,0.425277,2.540769,0.172487,0.581327,2.534811,-0.172487,0.581327,2.534811,0.164775,0.581327,2.537659,-0.164775,0.581327,2.537659,0.164775,0.581327,2.552918,-0.164775,0.581327,2.552918,0.172487,0.581327,2.550071,-0.172487,0.581327,2.550071,0.172487,0.425277,2.556028,-0.172487,0.425277,2.556028,0.164775,0.425277,2.558643,-0.164775,0.425277,2.558643,0.107552,0.425277,2.577049,-0.107552,0.425277,2.577049,0.115264,0.425277,2.574697,-0.115264,0.425277,2.574697,0.115264,0.576625,2.570485,-0.115264,0.576625,2.570485,0.107552,0.576625,2.573042,-0.107552,0.576625,2.573042,0.107552,0.576625,2.557783,-0.107552,0.576625,2.557783,0.115264,0.576625,2.555226,-0.115264,0.576625,2.555226,0.115264,0.425277,2.559438,-0.115264,0.425277,2.559438,0.107552,0.425277,2.56179,-0.107552,0.425277,2.56179,0.126626,0.425277,2.555889,-0.126626,0.425277,2.555889,0.134338,0.425277,2.55343,-0.134338,0.425277,2.55343,0.134338,0.580069,2.548623,-0.134338,0.580069,2.548623,0.126626,0.580069,2.5513,-0.126626,0.580069,2.5513,0.126626,0.580069,2.56656,-0.126626,0.580069,2.56656,0.134338,0.580069,2.563882,-0.134338,0.580069,2.563882,0.134338,0.425277,2.568689,-0.134338,0.425277,2.568689,0.126626,0.425277,2.571149,-0.126626,0.425277,2.571149,0.1457,0.425415,2.564993,-0.1457,0.425415,2.564993,0.153412,0.425415,2.562445,-0.153412,0.425415,2.562445,0.153412,0.580725,2.557077,-0.153412,0.580725,2.557077,0.1457,0.580725,2.55985,-0.1457,0.580725,2.55985,0.1457,0.580725,2.54459,-0.1457,0.580725,2.54459,0.153412,0.580725,2.541817,-0.153412,0.580725,2.541817,0.153412,0.425415,2.547186,-0.153412,0.425415,2.547186,0.1457,0.425415,2.549733,-0.1457,0.425415,2.549733,0.088477,0.426439,2.567366,-0.088477,0.426439,2.567366,0.096189,0.426439,2.56514,-0.096189,0.426439,2.56514,0.096189,0.575993,2.561463,-0.096189,0.575993,2.561463,0.088477,0.575993,2.563882,-0.088477,0.575993,2.563882,0.088477,0.575993,2.579142,-0.088477,0.575993,2.579142,0.096189,0.575993,2.576723,-0.096189,0.575993,2.576723,0.096189,0.426439,2.580399,-0.096189,0.426439,2.580399,0.088477,0.426439,2.582626,-0.088477,0.426439,2.582626,0.069403,0.426309,2.587884,-0.069403,0.426309,2.587884,0.077115,0.426309,2.585804,-0.077115,0.426309,2.585804,0.077115,0.571685,2.582656,-0.077115,0.571685,2.582656,0.069403,0.571685,2.584912,-0.069403,0.571685,2.584912,0.069403,0.571685,2.569652,-0.069403,0.571685,2.569652,0.077115,0.571685,2.567397,-0.077115,0.571685,2.567397,0.077115,0.426309,2.570545,-0.077115,0.426309,2.570545,0.069403,0.426309,2.572625,-0.069403,0.426309,2.572625,0.050329,0.430217,2.57742,-0.050329,0.430217,2.57742,0.05804,0.430217,2.575502,-0.05804,0.430217,2.575502,0.05804,0.570294,2.572865,-0.05804,0.570294,2.572865,0.050329,0.570294,2.574939,-0.050329,0.570294,2.574939,0.050329,0.570294,2.590199,-0.050329,0.570294,2.590199,0.05804,0.570294,2.588125,-0.05804,0.570294,2.588125,0.05804,0.430217,2.590761,-0.05804,0.430217,2.590761,0.050329,0.430217,2.592679,-0.050329,0.430217,2.592679],
  "indices" : [0,6,4,0,4,2,5,7,1,5,1,3,0,2,12,0,12,14,13,3,1,13,1,15,10,12,2,10,2,4,3,13,11,3,11,5,8,10,4,8,4,6,5,11,9,5,9,7,6,0,14,6,14,8,15,1,7,15,7,9,14,12,10,14,10,8,11,13,15,11,15,9,16,18,20,16,20,22,21,19,17,21,17,23,16,22,24,16,24,30,25,23,17,25,17,31,22,20,26,22,26,24,27,21,23,27,23,25,20,18,28,20,28,26,29,19,21,29,21,27,18,16,30,18,30,28,31,17,19,31,19,29,26,28,30,26,30,24,31,29,27,31,27,25,36,34,32,36,32,38,33,35,37,33,37,39,44,46,32,44,32,34,33,47,45,33,45,35,42,44,34,42,34,36,35,45,43,35,43,37,40,42,36,40,36,38,37,43,41,37,41,39,46,40,38,46,38,32,39,41,47,39,47,33,46,44,42,46,42,40,43,45,47,43,47,41,48,50,52,48,52,54,53,51,49,53,49,55,48,54,56,48,56,62,57,55,49,57,49,63,54,52,58,54,58,56,59,53,55,59,55,57,52,50,60,52,60,58,61,51,53,61,53,59,50,48,62,50,62,60,63,49,51,63,51,61,58,60,62,58,62,56,63,61,59,63,59,57,68,66,64,68,64,70,65,67,69,65,69,71,76,78,64,76,64,66,65,79,77,65,77,67,74,76,66,74,66,68,67,77,75,67,75,69,72,74,68,72,68,70,69,75,73,69,73,71,78,72,70,78,70,64,71,73,79,71,79,65,78,76,74,78,74,72,75,77,79,75,79,73,80,82,84,80,84,86,85,83,81,85,81,87,80,86,88,80,88,94,89,87,81,89,81,95,86,84,90,86,90,88,91,85,87,91,87,89,84,82,92,84,92,90,93,83,85,93,85,91,82,80,94,82,94,92,95,81,83,95,83,93,90,92,94,90,94,88,95,93,91,95,91,89,100,98,96,100,96,102,97,99,101,97,101,103,108,110,96,108,96,98,97,111,109,97,109,99,106,108,98,106,98,100,99,109,107,99,107,101,104,106,100,104,100,102,101,107,105,101,105,103,110,104,102,110,102,96,103,105,111,103,111,97,110,108,106,110,106,104,107,109,111,107,111,105,112,114,116,112,116,118,117,115,113,117,113,119,112,118,120,112,120,126,121,119,113,121,113,127,118,116,122,118,122,120,123,117,119,123,119,121,116,114,124,116,124,122,125,115,117,125,117,123,114,112,126,114,126,124,127,113,115,127,115,125,122,124,126,122,126,120,127,125,123,127,123,121,132,130,128,132,128,134,129,131,133,129,133,135,140,142,128,140,128,130,129,143,141,129,141,131,138,140,130,138,130,132,131,141,139,131,139,133,136,138,132,136,132,134,133,139,137,133,137,135,142,136,134,142,134,128,135,137,143,135,143,129,142,140,138,142,138,136,139,141,143,139,143,137,144,146,148,144,148,150,149,147,145,149,145,151,144,150,152,144,152,158,153,151,145,153,145,159,150,148,154,150,154,152,155,149,151,155,151,153,148,146,156,148,156,154,157,147,149,157,149,155,146,144,158,146,158,156,159,145,147,159,147,157,154,156,158,154,158,152,159,157,155,159,155,153,164,162,160,164,160,166,161,163,165,161,165,167,172,174,160,172,160,162,161,175,173,161,173,163,170,172,162,170,162,164,163,173,171,163,171,165,168,170,164,168,164,166,165,171,169,165,169,167,174,168,166,174,166,160,167,169,175,167,175,161,174,172,170,174,170,168,171,173,175,171,175,169,176,178,180,176,180,182,181,179,177,181,177,183,176,182,184,176,184,190,185,183,177,185,177,191,182,180,186,182,186,184,187,181,183,187,183,185,180,178,188,180,188,186,189,179,181,189,181,187,178,176,190,178,190,188,191,177,179,191,179,189,186,188,190,186,190,184,191,189,187,191,187,185,196,194,192,196,192,198,193,195,197,193,197,199,204,206,192,204,192,194,193,207,205,193,205,195,202,204,194,202,194,196,195,205,203,195,203,197,200,202,196,200,196,198,197,203,201,197,201,199,206,200,198,206,198,192,199,201,207,199,207,193,206,204,202,206,202,200,203,205,207,203,207,201,208,210,212,208,212,214,213,211,209,213,209,215,208,214,216,208,216,222,217,215,209,217,209,223,214,212,218,214,218,216,219,213,215,219,215,217,212,210,220,212,220,218,221,211,213,221,213,219,210,208,222,210,222,220,223,209,211,223,211,221,218,220,222,218,222,216,223,221,219,223,219,217,228,226,224,228,224,230,225,227,229,225,229,231,236,238,224,236,224,226,225,239,237,225,237,227,234,236,226,234,226,228,227,237,235,227,235,229,232,234,228,232,228,230,229,235,233,229,233,231,238,232,230,238,230,224,231,233,239,231,239,225,238,236,234,238,234,232,235,237,239,235,239,233,240,242,244,240,244,246,245,243,241,245,241,247,240,246,248,240,248,254,249,247,241,249,241,255,246,244,250,246,250,248,251,245,247,251,247,249,244,242,252,244,252,250,253,243,245,253,245,251,242,240,254,242,254,252,255,241,243,255,243,253,250,252,254,250,254,248,255,253,251,255,251,249,260,258,256,260,256,262,257,259,261,257,261,263,268,270,256,268,256,258,257,271,269,257,269,259,266,268,258,266,258,260,259,269,267,259,267,261,264,266,260,264,260,262,261,267,265,261,265,263,270,264,262,270,262,256,263,265,271,263,271,257,270,268,266,270,266,264,267,269,271,267,271,265,272,274,276,272,276,278,277,275,273,277,273,279,272,278,280,272,280,286,281,279,273,281,273,287,278,276,282,278,282,280,283,277,279,283,279,281,276,274,284,276,284,282,285,275,277,285,277,283,274,272,286,274,286,284,287,273,275,287,275,285,282,284,286,282,286,280,287,285,283,287,283,281,292,290,288,292,288,294,289,291,293,289,293,295,300,302,288,300,288,290,289,303,301,289,301,291,298,300,290,298,290,292,291,301,299,291,299,293,296,298,292,296,292,294,293,299,297,293,297,295,302,296,294,302,294,288,295,297,303,295,303,289,302,300,298,302,298,296,299,301,303,299,303,297],
  "Ni" : 1.00000,
  "Ka" : [0.00000,0.00000,0.00000],
  "d" : 1.00000,
  "Kd" : [0.02013,0.05858,0.45752],
  "illum" : 2,
  "Ks" : [0.16667,0.16667,0.16667],
  "Ns" : 292.15686
}