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

Source

WebGL Beginner's Guide - Code / 1727_09 / models / cars / lamborghini / part53.json

{
  "alias" : "Deckel_Mesh.025_",
  "vertices" : [1.320618,0.466288,0.011777,1.325735,0.466867,0.003015,1.320198,0.480199,0.012298,1.316233,0.465802,0.019072,1.320993,0.452391,0.010923,1.326084,0.451436,0.002199,1.325202,0.482299,0.003725,1.316084,0.477527,0.019142,1.316752,0.454137,0.017985,1.34173,0.4687,-0.02479,1.345855,0.469186,-0.032235,1.341177,0.482596,-0.024039,1.3367,0.46812,-0.015978,1.341972,0.454788,-0.025414,1.345841,0.457461,-0.032399,1.345173,0.48085,-0.031242,1.336168,0.483552,-0.015267,1.337049,0.452688,-0.016794,1.350558,0.469884,-0.043632,1.350308,0.469773,-0.041535,1.350193,0.45897,-0.04302,1.349748,0.469921,-0.044848,1.349573,0.480645,-0.041947,1.349375,0.479815,-0.04,1.349952,0.459591,-0.041,1.349379,0.458763,-0.044208,1.348746,0.480922,-0.043112,1.343147,0.469921,-0.048659,1.345853,0.469921,-0.047096,1.342778,0.458763,-0.04802,1.340137,0.469921,-0.050397,1.342145,0.480922,-0.046924,1.344851,0.480922,-0.045361,1.345484,0.458763,-0.046457,1.339768,0.458763,-0.049758,1.339135,0.480922,-0.048662,1.339211,0.504378,-0.023969,1.339942,0.500995,-0.023538,1.343737,0.498437,-0.031838,1.338074,0.505506,-0.024628,1.333989,0.507985,-0.014914,1.334847,0.504127,-0.014673,1.344102,0.495886,-0.030868,1.342721,0.499288,-0.032677,1.33281,0.509271,-0.01551,1.331473,0.505506,-0.028439,1.334179,0.505506,-0.026877,1.33612,0.499288,-0.036488,1.328463,0.505506,-0.030177,1.326209,0.509271,-0.019321,1.328915,0.509271,-0.017759,1.338826,0.499288,-0.034925,1.33311,0.499288,-0.038226,1.323199,0.509271,-0.021059,1.318032,0.501959,0.012714,1.318963,0.498598,0.012798,1.323024,0.506732,0.004079,1.316829,0.503079,0.012171,1.313848,0.495023,0.019931,1.315013,0.492563,0.019515,1.323882,0.502874,0.00432,1.321844,0.508018,0.003483,1.312566,0.495843,0.019554,1.310227,0.503079,0.008359,1.312934,0.503079,0.009922,1.315243,0.508018,-0.000328,1.307217,0.503079,0.006622,1.305965,0.495843,0.015742,1.308671,0.495843,0.017305,1.317949,0.508018,0.001234,1.312233,0.508018,-0.002066,1.302955,0.495843,0.014005,1.308714,0.465104,0.028844,1.309062,0.476017,0.02822,1.307257,0.465067,0.02875,1.309681,0.454342,0.027148,1.310406,0.465214,0.027578,1.310691,0.475396,0.027003,1.307626,0.476224,0.028111,1.308259,0.454066,0.027014,1.311268,0.455172,0.026002,1.300655,0.465067,0.024938,1.301024,0.476224,0.024299,1.297645,0.465067,0.0232,1.301657,0.454066,0.023203,1.303362,0.465067,0.026501,1.303731,0.476224,0.025862,1.298014,0.476224,0.022561,1.298647,0.454066,0.021465,1.304364,0.454066,0.024766,1.32007,0.430609,0.009185,1.320808,0.433992,0.009603,1.315518,0.43655,0.017039,1.318931,0.429482,0.00853,1.325301,0.427002,0.000135,1.325938,0.43086,0.000758,1.31654,0.439102,0.016871,1.314284,0.435699,0.016579,1.324195,0.425716,-0.000588,1.312329,0.429482,0.004719,1.315036,0.429482,0.006281,1.307682,0.435699,0.012767,1.309319,0.429482,0.002981,1.317594,0.425716,-0.004399,1.3203,0.425716,-0.002837,1.310389,0.435699,0.01433,1.304672,0.435699,0.011029,1.314584,0.425716,-0.006137,1.341249,0.433029,-0.027498,1.341787,0.436389,-0.026734,1.336267,0.428255,-0.018858,1.340176,0.431909,-0.028269,1.345407,0.439964,-0.03473,1.345629,0.442425,-0.033513,1.336904,0.432113,-0.018235,1.33516,0.426969,-0.019581,1.344439,0.439144,-0.035652,1.333575,0.431909,-0.03208,1.336281,0.431909,-0.030517,1.328559,0.426969,-0.023392,1.330565,0.431909,-0.033818,1.337837,0.439144,-0.039463,1.340544,0.439144,-0.0379,1.331265,0.426969,-0.02183,1.325549,0.426969,-0.02513,1.334827,0.439144,-0.041201,1.345607,0.447824,-0.032552,1.341968,0.443229,-0.026024,1.337142,0.439829,-0.017589,1.326176,0.438576,0.001404,1.321122,0.440847,0.010082,1.317051,0.444562,0.016908,1.313474,0.455467,0.023105,1.312767,0.465435,0.024479,1.312901,0.475515,0.024096,1.315835,0.487163,0.019016,1.319669,0.491759,0.0126,1.32456,0.495159,0.004203,1.335526,0.496411,-0.01479,1.340514,0.49414,-0.023506,1.344391,0.490426,-0.030445,1.348541,0.459473,-0.037633,1.348805,0.469552,-0.03794,1.347968,0.479521,-0.036641,1.335973,0.480922,-0.050487,1.336975,0.469921,-0.052222,1.336606,0.458763,-0.051583,1.329948,0.499288,-0.040051,1.325301,0.505506,-0.032003,1.320037,0.509271,-0.022884,1.309071,0.508018,-0.003892,1.304056,0.503079,0.004796,1.299793,0.495843,0.012179,1.294853,0.476224,0.020736,1.294484,0.465067,0.021375,1.295485,0.454066,0.01964,1.301511,0.435699,0.009204,1.306157,0.429482,0.001155,1.311422,0.425716,-0.007963,1.322387,0.426969,-0.026956,1.327403,0.431909,-0.035643,1.331666,0.439144,-0.043026,1.331583,0.451468,-0.007327,1.331218,0.467494,-0.006481,1.330668,0.483519,-0.005742,1.347267,0.488819,-0.036432,1.347284,0.490436,-0.038003,1.346396,0.490974,-0.039042,1.336785,0.490974,-0.044591,1.339795,0.490974,-0.042854,1.342501,0.490974,-0.041291,1.348371,0.450174,-0.038344,1.348476,0.448724,-0.040066,1.347617,0.448241,-0.041156,1.338006,0.448241,-0.046705,1.341016,0.448241,-0.044968,1.343722,0.448241,-0.043405,1.329325,0.504886,-0.005108,1.328463,0.508892,-0.005341,1.327282,0.510227,-0.005935,1.317671,0.510227,-0.011484,1.320681,0.510227,-0.009746,1.323387,0.510227,-0.008184,1.312201,0.484813,0.024305,1.310761,0.486263,0.025257,1.309388,0.486747,0.025058,1.299777,0.486747,0.019509,1.302787,0.486747,0.021247,1.305493,0.486747,0.02281,1.313304,0.446168,0.022393,1.311952,0.444552,0.023194,1.310608,0.444013,0.022944,1.300997,0.444013,0.017395,1.304007,0.444013,0.019133,1.306713,0.444013,0.020696,1.33146,0.430102,-0.008807,1.330827,0.426095,-0.009437,1.329723,0.42476,-0.010163,1.320112,0.42476,-0.015712,1.323122,0.42476,-0.013974,1.325828,0.42476,-0.012412,1.347102,0.480922,-0.044062,1.348104,0.469921,-0.045797,1.347735,0.458763,-0.045158,1.341077,0.499288,-0.033626,1.33643,0.505506,-0.025577,1.331166,0.509271,-0.016459,1.3202,0.508018,0.002534,1.315185,0.503079,0.011221,1.310922,0.495843,0.018605,1.305982,0.476224,0.027161,1.305613,0.465067,0.0278,1.306615,0.454066,0.026065,1.31264,0.435699,0.015629,1.317287,0.429482,0.007581,1.322551,0.425716,-0.001537,1.342795,0.439144,-0.036601,1.338532,0.431909,-0.029218,1.333517,0.426969,-0.02053,1.347628,0.452267,-0.036356,1.33169,0.438114,-0.008146,1.314529,0.448486,0.020974,1.313551,0.48272,0.022668,1.330012,0.496873,-0.00524,1.34665,0.486501,-0.034662,1.333623,0.490974,-0.046417,1.314509,0.510227,-0.01331,1.296615,0.486747,0.017684,1.297835,0.444013,0.01557,1.31695,0.42476,-0.017537,1.334844,0.448241,-0.048531,1.344753,0.490974,-0.039991,1.345973,0.448241,-0.042105,1.325638,0.510227,-0.006884,1.307744,0.486747,0.024109,1.308964,0.444013,0.021995,1.328079,0.42476,-0.011112],
  "indices" : [0,4,5,0,5,1,1,5,162,1,162,163,4,130,129,4,129,5,5,129,220,5,220,162,0,1,6,0,6,2,2,6,137,2,137,136,1,163,164,1,164,6,6,164,223,6,223,137,0,2,7,0,7,3,3,7,134,3,134,133,2,136,135,2,135,7,7,135,222,7,222,134,0,3,8,0,8,4,4,8,131,4,131,130,3,133,132,3,132,8,8,132,221,8,221,131,9,13,14,9,14,10,10,14,141,10,141,142,13,127,126,13,126,14,14,126,219,14,219,141,9,10,15,9,15,11,11,15,140,11,140,139,10,142,143,10,143,15,15,143,224,15,224,140,9,11,16,9,16,12,12,16,164,12,164,163,11,139,138,11,138,16,16,138,223,16,223,164,9,12,17,9,17,13,13,17,128,13,128,127,12,163,162,12,162,17,17,162,220,17,220,128,18,22,23,18,23,19,19,23,143,19,143,142,22,166,165,22,165,23,23,165,224,23,224,143,18,19,24,18,24,20,20,24,171,20,171,172,19,142,141,19,141,24,24,141,219,24,219,171,18,20,25,18,25,21,21,25,203,21,203,202,20,172,173,20,173,25,25,173,232,25,232,203,18,21,26,18,26,22,22,26,167,22,167,166,21,202,201,21,201,26,26,201,231,26,231,167,27,31,32,27,32,28,28,32,201,28,201,202,31,169,170,31,170,32,32,170,231,32,231,201,27,28,33,27,33,29,29,33,176,29,176,175,28,202,203,28,203,33,33,203,232,33,232,176,27,29,34,27,34,30,30,34,146,30,146,145,29,175,174,29,174,34,34,174,230,34,230,146,27,30,35,27,35,31,31,35,168,31,168,169,30,145,144,30,144,35,35,144,225,35,225,168,36,40,41,36,41,37,37,41,138,37,138,139,40,178,177,40,177,41,41,177,223,41,223,138,36,37,42,36,42,38,38,42,165,38,165,166,37,139,140,37,140,42,42,140,224,42,224,165,36,38,43,36,43,39,39,43,204,39,204,205,38,166,167,38,167,43,43,167,231,43,231,204,36,39,44,36,44,40,40,44,179,40,179,178,39,205,206,39,206,44,44,206,233,44,233,179,45,49,50,45,50,46,46,50,206,46,206,205,49,181,182,49,182,50,50,182,233,50,233,206,45,46,51,45,51,47,47,51,170,47,170,169,46,205,204,46,204,51,51,204,231,51,231,170,45,47,52,45,52,48,48,52,147,48,147,148,47,169,168,47,168,52,52,168,225,52,225,147,45,48,53,45,53,49,49,53,180,49,180,181,48,148,149,48,149,53,53,149,226,53,226,180,54,58,59,54,59,55,55,59,135,55,135,136,58,184,183,58,183,59,59,183,222,59,222,135,54,55,60,54,60,56,56,60,177,56,177,178,55,136,137,55,137,60,60,137,223,60,223,177,54,56,61,54,61,57,57,61,207,57,207,208,56,178,179,56,179,61,61,179,233,61,233,207,54,57,62,54,62,58,58,62,185,58,185,184,57,208,209,57,209,62,62,209,234,62,234,185,63,67,68,63,68,64,64,68,209,64,209,208,67,187,188,67,188,68,68,188,234,68,234,209,63,64,69,63,69,65,65,69,182,65,182,181,64,208,207,64,207,69,69,207,233,69,233,182,63,65,70,63,70,66,66,70,150,66,150,151,65,181,180,65,180,70,70,180,226,70,226,150,63,66,71,63,71,67,67,71,186,67,186,187,66,151,152,66,152,71,71,152,227,71,227,186,72,76,77,72,77,73,73,77,183,73,183,184,76,133,134,76,134,77,77,134,222,77,222,183,72,73,78,72,78,74,74,78,210,74,210,211,73,184,185,73,185,78,78,185,234,78,234,210,72,74,79,72,79,75,75,79,191,75,191,190,74,211,212,74,212,79,79,212,235,79,235,191,72,75,80,72,80,76,76,80,132,76,132,133,75,190,189,75,189,80,80,189,221,80,221,132,81,85,86,81,86,82,82,86,188,82,188,187,85,211,210,85,210,86,86,210,234,86,234,188,81,82,87,81,87,83,83,87,153,83,153,154,82,187,186,82,186,87,87,186,227,87,227,153,81,83,88,81,88,84,84,88,192,84,192,193,83,154,155,83,155,88,88,155,228,88,228,192,81,84,89,81,89,85,85,89,212,85,212,211,84,193,194,84,194,89,89,194,235,89,235,212,90,94,95,90,95,91,91,95,129,91,129,130,94,196,195,94,195,95,95,195,220,95,220,129,90,91,96,90,96,92,92,96,189,92,189,190,91,130,131,91,131,96,96,131,221,96,221,189,90,92,97,90,97,93,93,97,213,93,213,214,92,190,191,92,191,97,97,191,235,97,235,213,90,93,98,90,98,94,94,98,197,94,197,196,93,214,215,93,215,98,98,215,236,98,236,197,99,103,104,99,104,100,100,104,215,100,215,214,103,199,200,103,200,104,104,200,236,104,236,215,99,100,105,99,105,101,101,105,194,101,194,193,100,214,213,100,213,105,105,213,235,105,235,194,99,101,106,99,106,102,102,106,156,102,156,157,101,193,192,101,192,106,106,192,228,106,228,156,99,102,107,99,107,103,103,107,198,103,198,199,102,157,158,102,158,107,107,158,229,107,229,198,108,112,113,108,113,109,109,113,126,109,126,127,112,172,171,112,171,113,113,171,219,113,219,126,108,109,114,108,114,110,110,114,195,110,195,196,109,127,128,109,128,114,114,128,220,114,220,195,108,110,115,108,115,111,111,115,218,111,218,217,110,196,197,110,197,115,115,197,236,115,236,218,108,111,116,108,116,112,112,116,173,112,173,172,111,217,216,111,216,116,116,216,232,116,232,173,117,121,122,117,122,118,118,122,216,118,216,217,121,175,176,121,176,122,122,176,232,122,232,216,117,118,123,117,123,119,119,123,200,119,200,199,118,217,218,118,218,123,123,218,236,123,236,200,117,119,124,117,124,120,120,124,159,120,159,160,119,199,198,119,198,124,124,198,229,124,229,159,117,120,125,117,125,121,121,125,174,121,174,175,120,160,161,120,161,125,125,161,230,125,230,174],
  "Ka" : [0.01333,0.01333,0.01333],
  "d" : 1.00000,
  "Kd" : [0.80000,0.80000,0.80000],
  "illum" : 2,
  "Ks" : [0.80000,0.80000,0.80000],
  "Ns" : 0.00000
}