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

Source

WebGL Beginner's Guide - Code / 1727_09 / models / cars / audi / part37.json

{
  "alias" : "Armatur.004_Plane.014_carbon",
  "vertices" : [1.17907,0.836566,0.501762,1.14489,0.778892,0.519295,1.594585,0.532437,0.456005,1.595583,0.532437,0.479797,1.42924,0.548891,0.485688,1.429844,0.548891,0.503228,1.14274,0.779866,0.523405,1.146766,0.779889,0.542014,1.17868,0.837951,0.506367,1.185082,0.837997,0.525988,1.184443,0.840874,0.505697,1.190936,0.84092,0.52552,1.111635,0.725527,0.539893,1.113374,0.725527,0.557653,1.18411,0.76636,0.514098,1.381418,0.604963,0.485101,1.499864,0.608123,0.460694,1.508723,0.608486,0.467083,1.50645,0.608486,0.493467,1.437166,0.634494,0.471276,1.247109,0.794691,0.494128,1.360048,0.719005,0.480222,1.364984,0.721328,0.485511,1.251634,0.798322,0.498563,1.357023,0.722652,0.512014,1.249745,0.799668,0.520707,1.334174,0.71744,0.485642,1.244252,0.783116,0.497247,1.156662,0.67887,0.533997,1.237362,0.598601,0.521186,1.157881,0.67887,0.549487,1.237787,0.598601,0.533604,1.245833,0.641378,0.51251,1.184316,0.69991,0.523493,1.255411,0.684155,0.512063,1.21087,0.72095,0.52031,1.315706,0.7182,0.493517,1.247082,0.775173,0.50309,1.384085,0.661227,0.48401,1.335896,0.661035,0.494631,1.222976,0.754802,0.512386,1.339056,0.721112,0.533747,1.497458,0.602895,0.512697,1.41268,0.605059,0.522202,1.293038,0.629819,0.541331,1.214495,0.681479,0.560486,1.252832,0.787922,0.538957,1.153089,0.778896,0.557215,1.192023,0.836616,0.541745,1.214102,0.794773,0.549424,1.188984,0.749353,0.563993,1.229095,0.75458,0.536149,1.234327,0.754358,0.556601,1.342434,0.661036,0.519751,1.348085,0.661037,0.541559,1.390771,0.661227,0.508849,1.396325,0.661227,0.530442,1.25275,0.775,0.523242,1.257531,0.774828,0.540084,1.322275,0.718224,0.515908,1.327713,0.718247,0.535053,1.217624,0.720888,0.54693,1.223492,0.720827,0.57024,1.262101,0.684121,0.53769,1.267904,0.684087,0.560006,1.17812,0.837604,0.503032,1.143731,0.779623,0.52041,1.416577,0.562909,0.482138,1.57015,0.551358,0.453012,1.570796,0.550051,0.495753,1.425148,0.562933,0.513338,1.121503,0.738868,0.53297,1.182431,0.839797,0.502505,1.193785,0.839867,0.53728,1.125727,0.738869,0.56465,1.168507,0.819993,0.506386,1.196933,0.825405,0.499734,1.155316,0.775272,0.517908,1.578102,0.550977,0.45817,1.578294,0.550977,0.482793,1.182126,0.840848,0.505977,1.188553,0.840894,0.525714,1.303581,0.569074,0.508801,1.303954,0.569074,0.522115,1.118998,0.739405,0.535824,1.121268,0.739411,0.553779,1.548266,0.537023,0.464029,1.549154,0.537023,0.486076,1.16769,0.821263,0.510849,1.202117,0.829532,0.503801,1.206558,0.829903,0.524239,1.123305,0.713569,0.538366,1.124955,0.713569,0.555576,1.595589,0.532437,0.466117,1.430098,0.548891,0.493476,1.143292,0.779872,0.530026,1.180938,0.837962,0.513455,1.186735,0.840886,0.51286,1.110515,0.725527,0.546107,1.212816,0.757692,0.511158,1.212817,0.788886,0.503283,1.446163,0.608516,0.471528,1.17049,0.73141,0.523048,1.296713,0.617896,0.50207,1.346833,0.647017,0.490593,1.506321,0.608395,0.461744,1.502878,0.607088,0.507726,1.479947,0.614534,0.463886,1.508342,0.608486,0.47742,1.39679,0.654544,0.479204,1.418304,0.673686,0.472086,1.424875,0.675193,0.477832,1.419532,0.675524,0.505361,1.388484,0.673825,0.478071,1.25064,0.797414,0.494944,1.364419,0.720747,0.48115,1.249711,0.797405,0.533831,1.349219,0.722929,0.527661,1.243995,0.789982,0.495201,1.350442,0.717452,0.481972,1.251024,0.798658,0.506609,1.362325,0.721659,0.495175,1.24593,0.777158,0.499974,1.319757,0.71801,0.489926,1.30851,0.755524,0.486954,1.31269,0.758501,0.491845,1.30505,0.760493,0.516204,1.283131,0.756738,0.492522,1.23937,0.609295,0.516558,1.164569,0.68413,0.529366,1.251701,0.606405,0.539285,1.173637,0.679522,0.557977,1.237578,0.598601,0.526749,1.155974,0.67887,0.539874,1.203788,0.71569,0.51945,1.252573,0.673461,0.510519,1.198938,0.635768,0.527899,1.199657,0.635768,0.541469,1.21347,0.670389,0.518844,1.291803,0.666719,0.504267,1.257527,0.684147,0.520125,1.228006,0.70501,0.517562,1.213002,0.720934,0.52862,1.207896,0.736154,0.519015,1.264237,0.760929,0.500697,1.317914,0.718206,0.500737,1.367113,0.67547,0.486354,1.241055,0.77008,0.505414,1.248942,0.775129,0.509783,1.386322,0.661227,0.491842,1.371916,0.661179,0.486698,1.337975,0.661035,0.502567,1.224949,0.754747,0.519982,1.22927,0.764462,0.554807,1.334323,0.653233,0.541502,1.400414,0.647185,0.528382,1.256357,0.778102,0.539802,1.330548,0.718963,0.534727,1.214865,0.727958,0.568678,1.254551,0.683435,0.560126,1.287106,0.761693,0.536856,1.40905,0.667678,0.526678,1.473091,0.600641,0.515236,1.343553,0.615127,0.531573,1.252798,0.651236,0.551096,1.18945,0.715775,0.565964,1.230432,0.799161,0.542372,1.150814,0.779652,0.55315,1.189361,0.837674,0.537555,1.198469,0.825441,0.543916,1.162756,0.771002,0.559174,1.180255,0.82001,0.546022,1.173496,0.821304,0.530151,1.201175,0.777318,0.557502,1.214583,0.736057,0.545249,1.220382,0.73596,0.568172,1.246653,0.769786,0.526518,1.251364,0.769491,0.544312,1.378356,0.661179,0.511663,1.383847,0.66118,0.533333,1.298513,0.666712,0.529598,1.304337,0.666705,0.551618,1.373978,0.675476,0.510525,1.37959,0.675482,0.531483,1.270314,0.760916,0.52136,1.275443,0.760903,0.538728,1.234653,0.704951,0.543607,1.240413,0.704892,0.566341,1.233019,0.754414,0.551488,1.346672,0.661037,0.536107,1.394937,0.661227,0.525044,1.256336,0.774871,0.535874,1.326353,0.718241,0.530267,1.222025,0.720842,0.564413,1.266453,0.684096,0.554427,1.180946,0.839734,0.503581,1.126407,0.7497,0.530469,1.301329,0.58128,0.504309,1.557235,0.565986,0.456436,1.556487,0.565405,0.495459,1.313506,0.580587,0.528329,1.130889,0.749713,0.558826,1.190973,0.839801,0.534327,1.167515,0.820946,0.507612,1.533332,0.556091,0.458773,1.529841,0.552927,0.500438,1.132585,0.726914,0.531927,1.200349,0.8285,0.500497,1.207845,0.828112,0.538339,1.138809,0.724409,0.565709,1.187119,0.8139,0.503344,1.578764,0.550977,0.468407,1.184393,0.840859,0.513108,1.304209,0.569074,0.514938,1.118281,0.739407,0.542133,1.54923,0.537023,0.473493,1.169521,0.821273,0.517796,1.2037,0.829625,0.511198,1.122308,0.713569,0.544502,1.233552,0.774782,0.503226,1.390004,0.648013,0.481258,1.198101,0.734968,0.518368,1.292587,0.654513,0.502062,1.423545,0.674816,0.473064,1.414552,0.673728,0.521123,1.407252,0.672968,0.47404,1.423227,0.675276,0.488046,1.371829,0.675059,0.482677,1.312324,0.757757,0.487833,1.297423,0.761789,0.530758,1.299397,0.754339,0.488689,1.310101,0.758999,0.500724,1.268487,0.759881,0.497006,1.203013,0.644423,0.523404,1.213743,0.639635,0.548428,1.198676,0.635768,0.533524,1.223928,0.696355,0.516227,1.230111,0.704996,0.525729,1.266231,0.760926,0.50751,1.369456,0.675472,0.494003,1.293924,0.666717,0.512255,1.210011,0.73613,0.527228,1.374,0.661179,0.494586,1.242898,0.770006,0.512345,1.246131,0.776909,0.543827,1.373774,0.649667,0.532893,1.21558,0.746299,0.565504,1.291452,0.662838,0.551487,1.398766,0.661741,0.528563,1.278359,0.7611,0.53826,1.227672,0.707613,0.566247,1.177709,0.821,0.541649,1.186341,0.80867,0.549297,1.218933,0.735984,0.562441,1.250186,0.769565,0.539863,1.382475,0.66118,0.527916,1.302881,0.666707,0.546113,1.378187,0.675481,0.526244,1.274161,0.760906,0.534386,1.238973,0.704907,0.560658],
  "indices" : [0,75,203,0,203,65,0,65,195,0,195,72,0,72,207,0,207,76,0,76,210,0,210,75,1,71,196,1,196,66,1,66,203,1,203,75,1,75,210,1,210,77,1,77,206,1,206,71,2,86,204,2,204,68,2,68,198,2,198,78,2,78,211,2,211,93,2,93,215,2,215,86,3,87,215,3,215,93,3,93,211,3,211,79,3,79,199,3,199,69,3,69,205,3,205,87,4,82,197,4,197,67,4,67,204,4,204,86,4,86,215,4,215,94,4,94,213,4,213,82,5,83,213,5,213,94,5,94,215,5,215,87,5,87,205,5,205,70,5,70,200,5,200,83,6,88,203,6,203,66,6,66,196,6,196,84,6,84,214,6,214,95,6,95,216,6,216,88,7,172,216,7,216,95,7,95,214,7,214,85,7,85,201,7,201,167,7,167,251,7,251,172,8,80,195,8,195,65,8,65,203,8,203,88,8,88,216,8,216,96,8,96,212,8,212,80,9,81,212,9,212,96,9,96,216,9,216,172,9,172,251,9,251,168,9,168,202,9,202,81,10,89,207,10,207,72,10,72,195,10,195,80,10,80,212,10,212,97,10,97,217,10,217,89,11,90,217,11,217,97,11,97,212,11,212,81,11,81,202,11,202,73,11,73,208,11,208,90,12,84,196,12,196,71,12,71,206,12,206,91,12,91,218,12,218,98,12,98,214,12,214,84,13,85,214,13,214,98,13,98,218,13,218,92,13,92,209,13,209,74,13,74,201,13,201,85,14,102,206,14,206,77,14,77,210,14,210,100,14,100,219,14,219,99,14,99,221,14,221,102,15,67,197,15,197,103,15,103,222,15,222,104,15,104,220,15,220,101,15,101,204,15,204,67,16,107,225,16,225,110,16,110,223,16,223,105,16,105,198,16,198,68,16,68,204,16,204,107,17,108,211,17,211,78,17,78,198,17,198,105,17,105,223,17,223,111,17,111,226,17,226,108,18,106,199,18,199,79,18,79,211,18,211,108,18,108,226,18,226,112,18,112,224,18,224,106,19,107,204,19,204,101,19,101,220,19,220,109,19,109,227,19,227,113,19,113,225,19,225,107,20,118,210,20,210,76,20,76,207,20,207,114,20,114,228,20,228,124,20,124,230,20,230,118,21,119,230,21,230,124,21,124,228,21,228,115,21,115,223,21,223,110,21,110,225,21,225,119,22,121,226,22,226,111,22,111,223,22,223,115,22,115,228,22,228,125,22,125,231,22,231,121,23,120,231,23,231,125,23,125,228,23,228,114,23,114,207,23,207,89,23,89,217,23,217,120,24,117,224,24,224,112,24,112,226,24,226,121,24,121,231,24,231,126,24,126,229,24,229,117,25,116,229,25,229,126,25,126,231,25,231,120,25,120,217,25,217,90,25,90,208,25,208,116,26,119,225,26,225,113,26,113,227,26,227,123,26,123,232,26,232,127,26,127,230,26,230,119,27,118,230,27,230,127,27,127,232,27,232,122,27,122,219,27,219,100,27,100,210,27,210,118,28,133,218,28,218,91,28,91,206,28,206,129,28,129,233,28,233,136,28,136,235,28,235,133,29,132,235,29,235,136,29,136,233,29,233,128,29,128,197,29,197,82,29,82,213,29,213,132,30,131,209,30,209,92,30,92,218,30,218,133,30,133,235,30,235,137,30,137,234,30,234,131,31,130,234,31,234,137,31,137,235,31,235,132,31,132,213,31,213,83,31,83,200,31,200,130,32,135,222,32,222,103,32,103,197,32,197,128,32,128,233,32,233,138,32,138,236,32,236,135,33,134,236,33,236,138,33,138,233,33,233,129,33,129,206,33,206,102,33,102,221,33,221,134,34,135,236,34,236,141,34,141,237,34,237,140,34,140,240,34,240,139,34,139,222,34,222,135,35,134,221,35,221,143,35,143,241,35,241,142,35,142,237,35,237,141,35,141,236,35,236,134,36,123,227,36,227,146,36,146,239,36,239,145,36,145,238,36,238,144,36,144,232,36,232,123,37,122,232,37,232,144,37,144,238,37,238,148,37,148,243,37,243,147,37,147,219,37,219,122,38,109,220,38,220,150,38,150,242,38,242,149,38,149,239,38,239,146,38,146,227,38,227,109,39,104,222,39,222,139,39,139,240,39,240,151,39,151,242,39,242,150,39,150,220,39,220,104,40,99,219,40,219,147,40,147,243,40,243,152,40,152,241,40,241,143,40,143,221,40,221,99,41,161,224,41,224,117,41,117,229,41,229,160,41,160,249,41,249,157,41,157,248,41,248,161,42,69,199,42,199,106,42,106,224,42,224,161,42,161,248,42,248,162,42,162,205,42,205,69,43,163,200,43,200,70,43,70,205,43,205,162,43,162,248,43,248,155,43,155,245,43,245,163,44,130,200,44,200,163,44,163,245,44,245,154,44,154,247,44,247,164,44,164,234,44,234,130,45,165,209,45,209,131,45,131,234,45,234,164,45,164,247,45,247,159,45,159,250,45,250,165,46,116,208,46,208,166,46,166,244,46,244,156,46,156,249,46,249,160,46,160,229,46,229,116,47,167,201,47,201,74,47,74,209,47,209,170,47,170,252,47,252,171,47,171,251,47,251,167,48,168,251,48,251,171,48,171,252,48,252,169,48,169,208,48,208,73,48,73,202,48,202,168,49,166,208,49,208,169,49,169,252,49,252,173,49,173,246,49,246,153,49,153,244,49,244,166,50,158,246,50,246,173,50,173,252,50,252,170,50,170,209,50,209,165,50,165,250,50,250,158,51,174,241,51,241,152,51,152,243,51,243,176,51,176,254,51,254,188,51,188,253,51,253,174,52,175,253,52,253,188,52,188,254,52,254,177,52,177,244,52,244,153,52,153,246,52,246,175,53,178,242,53,242,151,53,151,240,53,240,180,53,180,256,53,256,189,53,189,255,53,255,178,54,179,255,54,255,189,54,189,256,54,256,181,54,181,247,54,247,154,54,154,245,54,245,179,55,182,239,55,239,149,55,149,242,55,242,178,55,178,255,55,255,190,55,190,257,55,257,182,56,183,257,56,257,190,56,190,255,56,255,179,56,179,245,56,245,155,56,155,248,56,248,183,57,176,243,57,243,148,57,148,238,57,238,184,57,184,258,57,258,191,57,191,254,57,254,176,58,177,254,58,254,191,58,191,258,58,258,185,58,185,249,58,249,156,58,156,244,58,244,177,59,184,238,59,238,145,59,145,239,59,239,182,59,182,257,59,257,192,59,192,258,59,258,184,60,185,258,60,258,192,60,192,257,60,257,183,60,183,248,60,248,157,60,157,249,60,249,185,61,186,237,61,237,142,61,142,241,61,241,174,61,174,253,61,253,193,61,193,259,61,259,186,62,187,259,62,259,193,62,193,253,62,253,175,62,175,246,62,246,158,62,158,250,62,250,187,63,180,240,63,240,140,63,140,237,63,237,186,63,186,259,63,259,194,63,194,256,63,256,180,64,181,256,64,256,194,64,194,259,64,259,187,64,187,250,64,250,159,64,159,247,64,247,181],
  "Ni" : 1.00000,
  "Ka" : [0.00310,0.00310,0.00310],
  "d" : 1.00000,
  "Kd" : [0.64000,0.64000,0.64000],
  "illum" : 2,
  "Ks" : [0.11000,0.11000,0.11000],
  "Ns" : 194.11765
}