plotly.js 2.11.0 → 2.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +3 -3
  3. package/dist/README.md +19 -19
  4. package/dist/plotly-basic.js +2 -2
  5. package/dist/plotly-basic.min.js +2 -2
  6. package/dist/plotly-cartesian.js +2 -2
  7. package/dist/plotly-cartesian.min.js +2 -2
  8. package/dist/plotly-finance.js +2 -2
  9. package/dist/plotly-finance.min.js +2 -2
  10. package/dist/plotly-geo-assets.js +2 -2
  11. package/dist/plotly-geo.js +2 -2
  12. package/dist/plotly-geo.min.js +2 -2
  13. package/dist/plotly-gl2d.js +2 -2
  14. package/dist/plotly-gl2d.min.js +2 -2
  15. package/dist/plotly-gl3d.js +2 -2
  16. package/dist/plotly-gl3d.min.js +2 -2
  17. package/dist/plotly-mapbox.js +2 -2
  18. package/dist/plotly-mapbox.min.js +2 -2
  19. package/dist/plotly-strict.js +19742 -20194
  20. package/dist/plotly-strict.min.js +10 -10
  21. package/dist/plotly-with-meta.js +2 -2
  22. package/dist/plotly.js +2 -2
  23. package/dist/plotly.min.js +2 -2
  24. package/package.json +2 -2
  25. package/src/generated/regl-codegen/30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0 +658 -0
  26. package/src/generated/regl-codegen/3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b +457 -0
  27. package/src/generated/regl-codegen/3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d +2050 -0
  28. package/src/generated/regl-codegen/453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45 +452 -0
  29. package/src/generated/regl-codegen/49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210 +1423 -0
  30. package/src/generated/regl-codegen/6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923 +2184 -0
  31. package/src/generated/regl-codegen/8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034 +2000 -0
  32. package/src/generated/regl-codegen/8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623 +637 -0
  33. package/src/generated/regl-codegen/a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470 +635 -0
  34. package/src/generated/regl-codegen/bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019 +3311 -0
  35. package/src/generated/regl-codegen/cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81 +660 -0
  36. package/src/generated/regl-codegen/db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d +2700 -0
  37. package/src/generated/regl-codegen/dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5 +3325 -0
  38. package/src/generated/regl-codegen/fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7 +2436 -0
  39. package/src/traces/parcoords/regl_precompiled.js +8 -8
  40. package/src/traces/scattergl/regl_precompiled.js +20 -20
  41. package/src/traces/scatterpolargl/regl_precompiled.js +20 -20
  42. package/src/traces/splom/regl_precompiled.js +20 -20
  43. package/src/version.js +1 -1
  44. package/src/generated/regl-codegen/0919c57b995304312da30a5af7873a319bfb7b7e22ff6b4fa203ecbd5774ebfc +0 -1462
  45. package/src/generated/regl-codegen/13c0ae156483f2bcbd7ff29404f0abfd8689ff43f41791a6c7469868690a4260 +0 -3391
  46. package/src/generated/regl-codegen/19769c875db736c08a744c0a6aabe28276ed06aa24fdb7c36506a9f4c1f56f13 +0 -3375
  47. package/src/generated/regl-codegen/21cec01aa93887c70e86d7f1bc84d6837da0b1f5c1ff4cadd42ac6eb37f9f316 +0 -2488
  48. package/src/generated/regl-codegen/4df455b48c9de7d9f1de4b9481b505c09613ba7f90d2b4e360e673839566688e +0 -662
  49. package/src/generated/regl-codegen/53f2bf051e4ba66c90f343d29aa8da9e4029454c0d428f8e46e94dfddc97c8c6 +0 -459
  50. package/src/generated/regl-codegen/59568c77bcbe6343ee6109df49ceeb78c8a8a8a81872e88fb077f9a3d6dc0567 +0 -637
  51. package/src/generated/regl-codegen/6c3ff5a68d2906faf59307b58a799389f916ebdd3f7732ce75967575041988fc +0 -2226
  52. package/src/generated/regl-codegen/7c8e7f36e693904898ece5f7f8b49b23c69d98397567c3915a45647209eb7da4 +0 -2052
  53. package/src/generated/regl-codegen/8a43b073e4f3e9c0e499c8ac9c253f2aa1e3d3de2febfccc6526b52295dbf770 +0 -664
  54. package/src/generated/regl-codegen/909861c036d6f1ef40ba2dfcc33ef32489d2fe05fa7b7984d5ff315ddceb17b1 +0 -454
  55. package/src/generated/regl-codegen/c759965c8d66b2b356ae7455825df829f2ba7d4e7e903236f8c8d3bc5f45bd44 +0 -2116
  56. package/src/generated/regl-codegen/f9448a214a3e3cd439b767559aa71a4d1ccf5a8f39b8b756973e71acd33ff956 +0 -2755
  57. package/src/generated/regl-codegen/ff8495670417d5d0e4caa9942ad63b4dff0242a390ac1cb807c78ca326d6f3ce +0 -639
@@ -1,3391 +0,0 @@
1
- module.exports = function anonymous(g0,g18,g19,g52,g90,g97,g98,g100,g105,g106,g109,g111,g113,g127,g131,g133,g147,g151,g153,g167,g171,g173,g187,g191,g193,g207,g211,g213,g227,g231,g233,g247,g251,g253,g267,g271,g273,g287,g291,g292,g294,g296,g298,g299,g300,g302,g305,g306,g307,g309,g310,g312,g315,g317,g320,g322,g325,g327,g333,g335,g337,g350,g352,g354,g356,g358,g360,g362,g364,g366,g368,g379,g381,g393,g395,g397,g398,g401,g404,g407,g410,g413,g416,g419,g422,g438,g465,g492,g519,g546,g573,g600,g627,g654,g667,g669,g707,g708,g709,g710
2
- ) {
3
- "use strict";
4
- var v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51;
5
- v1=g0.gl;
6
- v2=g0.context;
7
- v3=g0.strings;
8
- v4=g0.next;
9
- v5=g0.current;
10
- v6=g0.draw;
11
- v7=g0.elements;
12
- v8=g0.buffer;
13
- v9=g0.shader;
14
- v10=g0.attributes;
15
- v11=g0.vao;
16
- v12=g0.uniforms;
17
- v13=g0.framebuffer;
18
- v14=g0.extensions;
19
- v15=g0.timer;
20
- v16=g0.isBufferArgs;
21
- v17=g0.isArrayLike;
22
- v20=v4.blend_color;
23
- v21=v5.blend_color;
24
- v22=v4.blend_equation;
25
- v23=v5.blend_equation;
26
- v24=v4.blend_func;
27
- v25=v5.blend_func;
28
- v26=v4.depth_range;
29
- v27=v5.depth_range;
30
- v28=v4.colorMask;
31
- v29=v5.colorMask;
32
- v30=v4.polygonOffset_offset;
33
- v31=v5.polygonOffset_offset;
34
- v32=v4.sample_coverage;
35
- v33=v5.sample_coverage;
36
- v34=v4.stencil_func;
37
- v35=v5.stencil_func;
38
- v36=v4.stencil_opFront;
39
- v37=v5.stencil_opFront;
40
- v38=v4.stencil_opBack;
41
- v39=v5.stencil_opBack;
42
- v40=v4.scissor_box;
43
- v41=v5.scissor_box;
44
- v42=v4.viewport;
45
- v43=v5.viewport;
46
- v44={
47
- "points":0,"point":0,"lines":1,"line":1,"triangles":4,"triangle":4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6}
48
- ;
49
- v45={
50
- "never":512,"less":513,"<":513,"equal":514,"=":514,"==":514,"===":514,"lequal":515,"<=":515,"greater":516,">":516,"notequal":517,"!=":517,"!==":517,"gequal":518,">=":518,"always":519}
51
- ;
52
- v46={
53
- "0":0,"1":1,"zero":0,"one":1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776}
54
- ;
55
- v47={
56
- "add":32774,"subtract":32778,"reverse subtract":32779}
57
- ;
58
- v48={
59
- "0":0,"zero":0,"keep":7680,"replace":7681,"increment":7682,"decrement":7683,"increment wrap":34055,"decrement wrap":34056,"invert":5386}
60
- ;
61
- v49={
62
- "int8":5120,"int16":5122,"int32":5124,"uint8":5121,"uint16":5123,"uint32":5125,"float":5126,"float32":5126}
63
- ;
64
- v50={
65
- "cw":2304,"ccw":2305}
66
- ;
67
- v51=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"];
68
- return {
69
- "draw":function(a0){
70
- var v53,v54,v89,v91,v92,v93,v94,v95,v96,v99,v101,v102,v103,v104,v107,v108,v110,v112,v114,v115,v116,v117,v118,v119,v120,v121,v122,v123,v124,v125,v126,v128,v129,v130,v132,v134,v135,v136,v137,v138,v139,v140,v141,v142,v143,v144,v145,v146,v148,v149,v150,v152,v154,v155,v156,v157,v158,v159,v160,v161,v162,v163,v164,v165,v166,v168,v169,v170,v172,v174,v175,v176,v177,v178,v179,v180,v181,v182,v183,v184,v185,v186,v188,v189,v190,v192,v194,v195,v196,v197,v198,v199,v200,v201,v202,v203,v204,v205,v206,v208,v209,v210,v212,v214,v215,v216,v217,v218,v219,v220,v221,v222,v223,v224,v225,v226,v228,v229,v230,v232,v234,v235,v236,v237,v238,v239,v240,v241,v242,v243,v244,v245,v246,v248,v249,v250,v252,v254,v255,v256,v257,v258,v259,v260,v261,v262,v263,v264,v265,v266,v268,v269,v270,v272,v274,v275,v276,v277,v278,v279,v280,v281,v282,v283,v284,v285,v286,v288,v289,v290,v293,v295,v297,v301,v303,v304,v308,v311,v313,v314,v316,v318,v319,v321,v323,v324,v326,v328,v329,v330,v331,v332,v334,v336,v338;
71
- v53=v14.angle_instanced_arrays;
72
- v54=v13.next;
73
- if(v54!==v13.cur){
74
- if(v54){
75
- v1.bindFramebuffer(36160,v54.framebuffer);
76
- }
77
- else{
78
- v1.bindFramebuffer(36160,null);
79
- }
80
- v13.cur=v54;
81
- }
82
- if(v5.dirty){
83
- var v55,v56,v57,v58,v59,v60,v61,v62,v63,v64,v65,v66,v67,v68,v69,v70,v71,v72,v73,v74,v75,v76,v77,v78,v79,v80,v81,v82,v83,v84,v85,v86,v87,v88;
84
- v55=v4.dither;
85
- if(v55!==v5.dither){
86
- if(v55){
87
- v1.enable(3024);
88
- }
89
- else{
90
- v1.disable(3024);
91
- }
92
- v5.dither=v55;
93
- }
94
- v56=v22[0];
95
- v57=v22[1];
96
- if(v56!==v23[0]||v57!==v23[1]){
97
- v1.blendEquationSeparate(v56,v57);
98
- v23[0]=v56;
99
- v23[1]=v57;
100
- }
101
- v58=v4.depth_func;
102
- if(v58!==v5.depth_func){
103
- v1.depthFunc(v58);
104
- v5.depth_func=v58;
105
- }
106
- v59=v26[0];
107
- v60=v26[1];
108
- if(v59!==v27[0]||v60!==v27[1]){
109
- v1.depthRange(v59,v60);
110
- v27[0]=v59;
111
- v27[1]=v60;
112
- }
113
- v61=v4.depth_mask;
114
- if(v61!==v5.depth_mask){
115
- v1.depthMask(v61);
116
- v5.depth_mask=v61;
117
- }
118
- v62=v28[0];
119
- v63=v28[1];
120
- v64=v28[2];
121
- v65=v28[3];
122
- if(v62!==v29[0]||v63!==v29[1]||v64!==v29[2]||v65!==v29[3]){
123
- v1.colorMask(v62,v63,v64,v65);
124
- v29[0]=v62;
125
- v29[1]=v63;
126
- v29[2]=v64;
127
- v29[3]=v65;
128
- }
129
- v66=v4.cull_enable;
130
- if(v66!==v5.cull_enable){
131
- if(v66){
132
- v1.enable(2884);
133
- }
134
- else{
135
- v1.disable(2884);
136
- }
137
- v5.cull_enable=v66;
138
- }
139
- v67=v4.cull_face;
140
- if(v67!==v5.cull_face){
141
- v1.cullFace(v67);
142
- v5.cull_face=v67;
143
- }
144
- v68=v4.frontFace;
145
- if(v68!==v5.frontFace){
146
- v1.frontFace(v68);
147
- v5.frontFace=v68;
148
- }
149
- v69=v4.lineWidth;
150
- if(v69!==v5.lineWidth){
151
- v1.lineWidth(v69);
152
- v5.lineWidth=v69;
153
- }
154
- v70=v4.polygonOffset_enable;
155
- if(v70!==v5.polygonOffset_enable){
156
- if(v70){
157
- v1.enable(32823);
158
- }
159
- else{
160
- v1.disable(32823);
161
- }
162
- v5.polygonOffset_enable=v70;
163
- }
164
- v71=v30[0];
165
- v72=v30[1];
166
- if(v71!==v31[0]||v72!==v31[1]){
167
- v1.polygonOffset(v71,v72);
168
- v31[0]=v71;
169
- v31[1]=v72;
170
- }
171
- v73=v4.sample_alpha;
172
- if(v73!==v5.sample_alpha){
173
- if(v73){
174
- v1.enable(32926);
175
- }
176
- else{
177
- v1.disable(32926);
178
- }
179
- v5.sample_alpha=v73;
180
- }
181
- v74=v4.sample_enable;
182
- if(v74!==v5.sample_enable){
183
- if(v74){
184
- v1.enable(32928);
185
- }
186
- else{
187
- v1.disable(32928);
188
- }
189
- v5.sample_enable=v74;
190
- }
191
- v75=v32[0];
192
- v76=v32[1];
193
- if(v75!==v33[0]||v76!==v33[1]){
194
- v1.sampleCoverage(v75,v76);
195
- v33[0]=v75;
196
- v33[1]=v76;
197
- }
198
- v77=v4.stencil_mask;
199
- if(v77!==v5.stencil_mask){
200
- v1.stencilMask(v77);
201
- v5.stencil_mask=v77;
202
- }
203
- v78=v34[0];
204
- v79=v34[1];
205
- v80=v34[2];
206
- if(v78!==v35[0]||v79!==v35[1]||v80!==v35[2]){
207
- v1.stencilFunc(v78,v79,v80);
208
- v35[0]=v78;
209
- v35[1]=v79;
210
- v35[2]=v80;
211
- }
212
- v81=v36[0];
213
- v82=v36[1];
214
- v83=v36[2];
215
- v84=v36[3];
216
- if(v81!==v37[0]||v82!==v37[1]||v83!==v37[2]||v84!==v37[3]){
217
- v1.stencilOpSeparate(v81,v82,v83,v84);
218
- v37[0]=v81;
219
- v37[1]=v82;
220
- v37[2]=v83;
221
- v37[3]=v84;
222
- }
223
- v85=v38[0];
224
- v86=v38[1];
225
- v87=v38[2];
226
- v88=v38[3];
227
- if(v85!==v39[0]||v86!==v39[1]||v87!==v39[2]||v88!==v39[3]){
228
- v1.stencilOpSeparate(v85,v86,v87,v88);
229
- v39[0]=v85;
230
- v39[1]=v86;
231
- v39[2]=v87;
232
- v39[3]=v88;
233
- }
234
- }
235
- v89=a0["viewport"];
236
- if(!(v89&&typeof v89==="object"))g18.commandRaise(g90,g19);
237
- v91=v89.x|0;
238
- v92=v89.y|0;
239
- v93="width" in v89?v89.width|0:(v2.framebufferWidth-v91);
240
- v94="height" in v89?v89.height|0:(v2.framebufferHeight-v92);
241
- if(!(v93>=0&&v94>=0))g18.commandRaise(g90,g19);
242
- v95=v2.viewportWidth;
243
- v2.viewportWidth=v93;
244
- v96=v2.viewportHeight;
245
- v2.viewportHeight=v94;
246
- v1.viewport(v91,v92,v93,v94);
247
- v43[0]=v91;
248
- v43[1]=v92;
249
- v43[2]=v93;
250
- v43[3]=v94;
251
- v1.blendColor(0,0,0,1);
252
- v21[0]=0;
253
- v21[1]=0;
254
- v21[2]=0;
255
- v21[3]=1;
256
- if(g97){
257
- v1.enable(3042);
258
- }
259
- else{
260
- v1.disable(3042);
261
- }
262
- v5.blend_enable=g97;
263
- v1.blendFuncSeparate(770,771,773,1);
264
- v25[0]=770;
265
- v25[1]=771;
266
- v25[2]=773;
267
- v25[3]=1;
268
- if(g98){
269
- v1.enable(2929);
270
- }
271
- else{
272
- v1.disable(2929);
273
- }
274
- v5.depth_enable=g98;
275
- v99=a0["viewport"];
276
- if(!(v99&&typeof v99==="object"))g18.commandRaise(g100,g19);
277
- v101=v99.x|0;
278
- v102=v99.y|0;
279
- v103="width" in v99?v99.width|0:(v2.framebufferWidth-v101);
280
- v104="height" in v99?v99.height|0:(v2.framebufferHeight-v102);
281
- if(!(v103>=0&&v104>=0))g18.commandRaise(g100,g19);
282
- v1.scissor(v101,v102,v103,v104);
283
- v41[0]=v101;
284
- v41[1]=v102;
285
- v41[2]=v103;
286
- v41[3]=v104;
287
- if(g105){
288
- v1.enable(3089);
289
- }
290
- else{
291
- v1.disable(3089);
292
- }
293
- v5.scissor_enable=g105;
294
- if(g106){
295
- v1.enable(2960);
296
- }
297
- else{
298
- v1.disable(2960);
299
- }
300
- v5.stencil_enable=g106;
301
- v107=v5.profile;
302
- if(v107){
303
- v108=performance.now();
304
- g52.count++;
305
- }
306
- v1.useProgram(g109.program);
307
- v110=v14.angle_instanced_arrays;
308
- v11.setVAO(null);
309
- v112=g111.call(this,v2,a0,0);
310
- if(!(v112&&(typeof v112==="object"||typeof v112==="function")&&(v16(v112)||v8.getBuffer(v112)||v8.getBuffer(v112.buffer)||v16(v112.buffer)||("constant" in v112&&(typeof v112.constant==="number"||v17(v112.constant))))))g18.commandRaise(g113,g19);
311
- v114=false;
312
- v115=1;
313
- v116=0;
314
- v117=0;
315
- v118=0;
316
- v119=0;
317
- v120=null;
318
- v121=0;
319
- v122=false;
320
- v123=5126;
321
- v124=0;
322
- v125=0;
323
- v126=0;
324
- if(v16(v112)){
325
- v114=true;
326
- v120=v8.createStream(34962,v112);
327
- v123=v120.dtype;
328
- }
329
- else{
330
- v120=v8.getBuffer(v112);
331
- if(v120){
332
- v123=v120.dtype;
333
- }
334
- else if("constant" in v112){
335
- v115=2;
336
- if(typeof v112.constant === "number"){
337
- v116=v112.constant;
338
- v117=v118=v119=0;
339
- }
340
- else{
341
- v116=v112.constant.length>0?v112.constant[0]:0;
342
- v117=v112.constant.length>1?v112.constant[1]:0;
343
- v118=v112.constant.length>2?v112.constant[2]:0;
344
- v119=v112.constant.length>3?v112.constant[3]:0;
345
- }
346
- }
347
- else{
348
- if(v16(v112.buffer)){
349
- v120=v8.createStream(34962,v112.buffer);
350
- }
351
- else{
352
- v120=v8.getBuffer(v112.buffer);
353
- }
354
- v123="type" in v112?v49[v112.type]:v120.dtype;
355
- v122=!!v112.normalized;
356
- v121=v112.size|0;
357
- v124=v112.offset|0;
358
- v125=v112.stride|0;
359
- v126=v112.divisor|0;
360
- }
361
- }
362
- v128=g127.location;
363
- v129=v10[v128];
364
- if(v115===1){
365
- if(!v129.buffer){
366
- v1.enableVertexAttribArray(v128);
367
- }
368
- v130=v121||4;
369
- if(v129.type!==v123||v129.size!==v130||v129.buffer!==v120||v129.normalized!==v122||v129.offset!==v124||v129.stride!==v125){
370
- v1.bindBuffer(34962,v120.buffer);
371
- v1.vertexAttribPointer(v128,v130,v123,v122,v125,v124);
372
- v129.type=v123;
373
- v129.size=v130;
374
- v129.buffer=v120;
375
- v129.normalized=v122;
376
- v129.offset=v124;
377
- v129.stride=v125;
378
- }
379
- if(v129.divisor!==v126){
380
- v110.vertexAttribDivisorANGLE(v128,v126);
381
- v129.divisor=v126;
382
- }
383
- }
384
- else{
385
- if(v129.buffer){
386
- v1.disableVertexAttribArray(v128);
387
- v129.buffer=null;
388
- }
389
- if(v129.x!==v116||v129.y!==v117||v129.z!==v118||v129.w!==v119){
390
- v1.vertexAttrib4f(v128,v116,v117,v118,v119);
391
- v129.x=v116;
392
- v129.y=v117;
393
- v129.z=v118;
394
- v129.w=v119;
395
- }
396
- }
397
- v132=g131.call(this,v2,a0,0);
398
- if(!(v132&&(typeof v132==="object"||typeof v132==="function")&&(v16(v132)||v8.getBuffer(v132)||v8.getBuffer(v132.buffer)||v16(v132.buffer)||("constant" in v132&&(typeof v132.constant==="number"||v17(v132.constant))))))g18.commandRaise(g133,g19);
399
- v134=false;
400
- v135=1;
401
- v136=0;
402
- v137=0;
403
- v138=0;
404
- v139=0;
405
- v140=null;
406
- v141=0;
407
- v142=false;
408
- v143=5126;
409
- v144=0;
410
- v145=0;
411
- v146=0;
412
- if(v16(v132)){
413
- v134=true;
414
- v140=v8.createStream(34962,v132);
415
- v143=v140.dtype;
416
- }
417
- else{
418
- v140=v8.getBuffer(v132);
419
- if(v140){
420
- v143=v140.dtype;
421
- }
422
- else if("constant" in v132){
423
- v135=2;
424
- if(typeof v132.constant === "number"){
425
- v136=v132.constant;
426
- v137=v138=v139=0;
427
- }
428
- else{
429
- v136=v132.constant.length>0?v132.constant[0]:0;
430
- v137=v132.constant.length>1?v132.constant[1]:0;
431
- v138=v132.constant.length>2?v132.constant[2]:0;
432
- v139=v132.constant.length>3?v132.constant[3]:0;
433
- }
434
- }
435
- else{
436
- if(v16(v132.buffer)){
437
- v140=v8.createStream(34962,v132.buffer);
438
- }
439
- else{
440
- v140=v8.getBuffer(v132.buffer);
441
- }
442
- v143="type" in v132?v49[v132.type]:v140.dtype;
443
- v142=!!v132.normalized;
444
- v141=v132.size|0;
445
- v144=v132.offset|0;
446
- v145=v132.stride|0;
447
- v146=v132.divisor|0;
448
- }
449
- }
450
- v148=g147.location;
451
- v149=v10[v148];
452
- if(v135===1){
453
- if(!v149.buffer){
454
- v1.enableVertexAttribArray(v148);
455
- }
456
- v150=v141||1;
457
- if(v149.type!==v143||v149.size!==v150||v149.buffer!==v140||v149.normalized!==v142||v149.offset!==v144||v149.stride!==v145){
458
- v1.bindBuffer(34962,v140.buffer);
459
- v1.vertexAttribPointer(v148,v150,v143,v142,v145,v144);
460
- v149.type=v143;
461
- v149.size=v150;
462
- v149.buffer=v140;
463
- v149.normalized=v142;
464
- v149.offset=v144;
465
- v149.stride=v145;
466
- }
467
- if(v149.divisor!==v146){
468
- v110.vertexAttribDivisorANGLE(v148,v146);
469
- v149.divisor=v146;
470
- }
471
- }
472
- else{
473
- if(v149.buffer){
474
- v1.disableVertexAttribArray(v148);
475
- v149.buffer=null;
476
- }
477
- if(v149.x!==v136||v149.y!==v137||v149.z!==v138||v149.w!==v139){
478
- v1.vertexAttrib4f(v148,v136,v137,v138,v139);
479
- v149.x=v136;
480
- v149.y=v137;
481
- v149.z=v138;
482
- v149.w=v139;
483
- }
484
- }
485
- v152=g151.call(this,v2,a0,0);
486
- if(!(v152&&(typeof v152==="object"||typeof v152==="function")&&(v16(v152)||v8.getBuffer(v152)||v8.getBuffer(v152.buffer)||v16(v152.buffer)||("constant" in v152&&(typeof v152.constant==="number"||v17(v152.constant))))))g18.commandRaise(g153,g19);
487
- v154=false;
488
- v155=1;
489
- v156=0;
490
- v157=0;
491
- v158=0;
492
- v159=0;
493
- v160=null;
494
- v161=0;
495
- v162=false;
496
- v163=5126;
497
- v164=0;
498
- v165=0;
499
- v166=0;
500
- if(v16(v152)){
501
- v154=true;
502
- v160=v8.createStream(34962,v152);
503
- v163=v160.dtype;
504
- }
505
- else{
506
- v160=v8.getBuffer(v152);
507
- if(v160){
508
- v163=v160.dtype;
509
- }
510
- else if("constant" in v152){
511
- v155=2;
512
- if(typeof v152.constant === "number"){
513
- v156=v152.constant;
514
- v157=v158=v159=0;
515
- }
516
- else{
517
- v156=v152.constant.length>0?v152.constant[0]:0;
518
- v157=v152.constant.length>1?v152.constant[1]:0;
519
- v158=v152.constant.length>2?v152.constant[2]:0;
520
- v159=v152.constant.length>3?v152.constant[3]:0;
521
- }
522
- }
523
- else{
524
- if(v16(v152.buffer)){
525
- v160=v8.createStream(34962,v152.buffer);
526
- }
527
- else{
528
- v160=v8.getBuffer(v152.buffer);
529
- }
530
- v163="type" in v152?v49[v152.type]:v160.dtype;
531
- v162=!!v152.normalized;
532
- v161=v152.size|0;
533
- v164=v152.offset|0;
534
- v165=v152.stride|0;
535
- v166=v152.divisor|0;
536
- }
537
- }
538
- v168=g167.location;
539
- v169=v10[v168];
540
- if(v155===1){
541
- if(!v169.buffer){
542
- v1.enableVertexAttribArray(v168);
543
- }
544
- v170=v161||4;
545
- if(v169.type!==v163||v169.size!==v170||v169.buffer!==v160||v169.normalized!==v162||v169.offset!==v164||v169.stride!==v165){
546
- v1.bindBuffer(34962,v160.buffer);
547
- v1.vertexAttribPointer(v168,v170,v163,v162,v165,v164);
548
- v169.type=v163;
549
- v169.size=v170;
550
- v169.buffer=v160;
551
- v169.normalized=v162;
552
- v169.offset=v164;
553
- v169.stride=v165;
554
- }
555
- if(v169.divisor!==v166){
556
- v110.vertexAttribDivisorANGLE(v168,v166);
557
- v169.divisor=v166;
558
- }
559
- }
560
- else{
561
- if(v169.buffer){
562
- v1.disableVertexAttribArray(v168);
563
- v169.buffer=null;
564
- }
565
- if(v169.x!==v156||v169.y!==v157||v169.z!==v158||v169.w!==v159){
566
- v1.vertexAttrib4f(v168,v156,v157,v158,v159);
567
- v169.x=v156;
568
- v169.y=v157;
569
- v169.z=v158;
570
- v169.w=v159;
571
- }
572
- }
573
- v172=g171.call(this,v2,a0,0);
574
- if(!(v172&&(typeof v172==="object"||typeof v172==="function")&&(v16(v172)||v8.getBuffer(v172)||v8.getBuffer(v172.buffer)||v16(v172.buffer)||("constant" in v172&&(typeof v172.constant==="number"||v17(v172.constant))))))g18.commandRaise(g173,g19);
575
- v174=false;
576
- v175=1;
577
- v176=0;
578
- v177=0;
579
- v178=0;
580
- v179=0;
581
- v180=null;
582
- v181=0;
583
- v182=false;
584
- v183=5126;
585
- v184=0;
586
- v185=0;
587
- v186=0;
588
- if(v16(v172)){
589
- v174=true;
590
- v180=v8.createStream(34962,v172);
591
- v183=v180.dtype;
592
- }
593
- else{
594
- v180=v8.getBuffer(v172);
595
- if(v180){
596
- v183=v180.dtype;
597
- }
598
- else if("constant" in v172){
599
- v175=2;
600
- if(typeof v172.constant === "number"){
601
- v176=v172.constant;
602
- v177=v178=v179=0;
603
- }
604
- else{
605
- v176=v172.constant.length>0?v172.constant[0]:0;
606
- v177=v172.constant.length>1?v172.constant[1]:0;
607
- v178=v172.constant.length>2?v172.constant[2]:0;
608
- v179=v172.constant.length>3?v172.constant[3]:0;
609
- }
610
- }
611
- else{
612
- if(v16(v172.buffer)){
613
- v180=v8.createStream(34962,v172.buffer);
614
- }
615
- else{
616
- v180=v8.getBuffer(v172.buffer);
617
- }
618
- v183="type" in v172?v49[v172.type]:v180.dtype;
619
- v182=!!v172.normalized;
620
- v181=v172.size|0;
621
- v184=v172.offset|0;
622
- v185=v172.stride|0;
623
- v186=v172.divisor|0;
624
- }
625
- }
626
- v188=g187.location;
627
- v189=v10[v188];
628
- if(v175===1){
629
- if(!v189.buffer){
630
- v1.enableVertexAttribArray(v188);
631
- }
632
- v190=v181||1;
633
- if(v189.type!==v183||v189.size!==v190||v189.buffer!==v180||v189.normalized!==v182||v189.offset!==v184||v189.stride!==v185){
634
- v1.bindBuffer(34962,v180.buffer);
635
- v1.vertexAttribPointer(v188,v190,v183,v182,v185,v184);
636
- v189.type=v183;
637
- v189.size=v190;
638
- v189.buffer=v180;
639
- v189.normalized=v182;
640
- v189.offset=v184;
641
- v189.stride=v185;
642
- }
643
- if(v189.divisor!==v186){
644
- v110.vertexAttribDivisorANGLE(v188,v186);
645
- v189.divisor=v186;
646
- }
647
- }
648
- else{
649
- if(v189.buffer){
650
- v1.disableVertexAttribArray(v188);
651
- v189.buffer=null;
652
- }
653
- if(v189.x!==v176||v189.y!==v177||v189.z!==v178||v189.w!==v179){
654
- v1.vertexAttrib4f(v188,v176,v177,v178,v179);
655
- v189.x=v176;
656
- v189.y=v177;
657
- v189.z=v178;
658
- v189.w=v179;
659
- }
660
- }
661
- v192=g191.call(this,v2,a0,0);
662
- if(!(v192&&(typeof v192==="object"||typeof v192==="function")&&(v16(v192)||v8.getBuffer(v192)||v8.getBuffer(v192.buffer)||v16(v192.buffer)||("constant" in v192&&(typeof v192.constant==="number"||v17(v192.constant))))))g18.commandRaise(g193,g19);
663
- v194=false;
664
- v195=1;
665
- v196=0;
666
- v197=0;
667
- v198=0;
668
- v199=0;
669
- v200=null;
670
- v201=0;
671
- v202=false;
672
- v203=5126;
673
- v204=0;
674
- v205=0;
675
- v206=0;
676
- if(v16(v192)){
677
- v194=true;
678
- v200=v8.createStream(34962,v192);
679
- v203=v200.dtype;
680
- }
681
- else{
682
- v200=v8.getBuffer(v192);
683
- if(v200){
684
- v203=v200.dtype;
685
- }
686
- else if("constant" in v192){
687
- v195=2;
688
- if(typeof v192.constant === "number"){
689
- v196=v192.constant;
690
- v197=v198=v199=0;
691
- }
692
- else{
693
- v196=v192.constant.length>0?v192.constant[0]:0;
694
- v197=v192.constant.length>1?v192.constant[1]:0;
695
- v198=v192.constant.length>2?v192.constant[2]:0;
696
- v199=v192.constant.length>3?v192.constant[3]:0;
697
- }
698
- }
699
- else{
700
- if(v16(v192.buffer)){
701
- v200=v8.createStream(34962,v192.buffer);
702
- }
703
- else{
704
- v200=v8.getBuffer(v192.buffer);
705
- }
706
- v203="type" in v192?v49[v192.type]:v200.dtype;
707
- v202=!!v192.normalized;
708
- v201=v192.size|0;
709
- v204=v192.offset|0;
710
- v205=v192.stride|0;
711
- v206=v192.divisor|0;
712
- }
713
- }
714
- v208=g207.location;
715
- v209=v10[v208];
716
- if(v195===1){
717
- if(!v209.buffer){
718
- v1.enableVertexAttribArray(v208);
719
- }
720
- v210=v201||1;
721
- if(v209.type!==v203||v209.size!==v210||v209.buffer!==v200||v209.normalized!==v202||v209.offset!==v204||v209.stride!==v205){
722
- v1.bindBuffer(34962,v200.buffer);
723
- v1.vertexAttribPointer(v208,v210,v203,v202,v205,v204);
724
- v209.type=v203;
725
- v209.size=v210;
726
- v209.buffer=v200;
727
- v209.normalized=v202;
728
- v209.offset=v204;
729
- v209.stride=v205;
730
- }
731
- if(v209.divisor!==v206){
732
- v110.vertexAttribDivisorANGLE(v208,v206);
733
- v209.divisor=v206;
734
- }
735
- }
736
- else{
737
- if(v209.buffer){
738
- v1.disableVertexAttribArray(v208);
739
- v209.buffer=null;
740
- }
741
- if(v209.x!==v196||v209.y!==v197||v209.z!==v198||v209.w!==v199){
742
- v1.vertexAttrib4f(v208,v196,v197,v198,v199);
743
- v209.x=v196;
744
- v209.y=v197;
745
- v209.z=v198;
746
- v209.w=v199;
747
- }
748
- }
749
- v212=g211.call(this,v2,a0,0);
750
- if(!(v212&&(typeof v212==="object"||typeof v212==="function")&&(v16(v212)||v8.getBuffer(v212)||v8.getBuffer(v212.buffer)||v16(v212.buffer)||("constant" in v212&&(typeof v212.constant==="number"||v17(v212.constant))))))g18.commandRaise(g213,g19);
751
- v214=false;
752
- v215=1;
753
- v216=0;
754
- v217=0;
755
- v218=0;
756
- v219=0;
757
- v220=null;
758
- v221=0;
759
- v222=false;
760
- v223=5126;
761
- v224=0;
762
- v225=0;
763
- v226=0;
764
- if(v16(v212)){
765
- v214=true;
766
- v220=v8.createStream(34962,v212);
767
- v223=v220.dtype;
768
- }
769
- else{
770
- v220=v8.getBuffer(v212);
771
- if(v220){
772
- v223=v220.dtype;
773
- }
774
- else if("constant" in v212){
775
- v215=2;
776
- if(typeof v212.constant === "number"){
777
- v216=v212.constant;
778
- v217=v218=v219=0;
779
- }
780
- else{
781
- v216=v212.constant.length>0?v212.constant[0]:0;
782
- v217=v212.constant.length>1?v212.constant[1]:0;
783
- v218=v212.constant.length>2?v212.constant[2]:0;
784
- v219=v212.constant.length>3?v212.constant[3]:0;
785
- }
786
- }
787
- else{
788
- if(v16(v212.buffer)){
789
- v220=v8.createStream(34962,v212.buffer);
790
- }
791
- else{
792
- v220=v8.getBuffer(v212.buffer);
793
- }
794
- v223="type" in v212?v49[v212.type]:v220.dtype;
795
- v222=!!v212.normalized;
796
- v221=v212.size|0;
797
- v224=v212.offset|0;
798
- v225=v212.stride|0;
799
- v226=v212.divisor|0;
800
- }
801
- }
802
- v228=g227.location;
803
- v229=v10[v228];
804
- if(v215===1){
805
- if(!v229.buffer){
806
- v1.enableVertexAttribArray(v228);
807
- }
808
- v230=v221||1;
809
- if(v229.type!==v223||v229.size!==v230||v229.buffer!==v220||v229.normalized!==v222||v229.offset!==v224||v229.stride!==v225){
810
- v1.bindBuffer(34962,v220.buffer);
811
- v1.vertexAttribPointer(v228,v230,v223,v222,v225,v224);
812
- v229.type=v223;
813
- v229.size=v230;
814
- v229.buffer=v220;
815
- v229.normalized=v222;
816
- v229.offset=v224;
817
- v229.stride=v225;
818
- }
819
- if(v229.divisor!==v226){
820
- v110.vertexAttribDivisorANGLE(v228,v226);
821
- v229.divisor=v226;
822
- }
823
- }
824
- else{
825
- if(v229.buffer){
826
- v1.disableVertexAttribArray(v228);
827
- v229.buffer=null;
828
- }
829
- if(v229.x!==v216||v229.y!==v217||v229.z!==v218||v229.w!==v219){
830
- v1.vertexAttrib4f(v228,v216,v217,v218,v219);
831
- v229.x=v216;
832
- v229.y=v217;
833
- v229.z=v218;
834
- v229.w=v219;
835
- }
836
- }
837
- v232=g231.call(this,v2,a0,0);
838
- if(!(v232&&(typeof v232==="object"||typeof v232==="function")&&(v16(v232)||v8.getBuffer(v232)||v8.getBuffer(v232.buffer)||v16(v232.buffer)||("constant" in v232&&(typeof v232.constant==="number"||v17(v232.constant))))))g18.commandRaise(g233,g19);
839
- v234=false;
840
- v235=1;
841
- v236=0;
842
- v237=0;
843
- v238=0;
844
- v239=0;
845
- v240=null;
846
- v241=0;
847
- v242=false;
848
- v243=5126;
849
- v244=0;
850
- v245=0;
851
- v246=0;
852
- if(v16(v232)){
853
- v234=true;
854
- v240=v8.createStream(34962,v232);
855
- v243=v240.dtype;
856
- }
857
- else{
858
- v240=v8.getBuffer(v232);
859
- if(v240){
860
- v243=v240.dtype;
861
- }
862
- else if("constant" in v232){
863
- v235=2;
864
- if(typeof v232.constant === "number"){
865
- v236=v232.constant;
866
- v237=v238=v239=0;
867
- }
868
- else{
869
- v236=v232.constant.length>0?v232.constant[0]:0;
870
- v237=v232.constant.length>1?v232.constant[1]:0;
871
- v238=v232.constant.length>2?v232.constant[2]:0;
872
- v239=v232.constant.length>3?v232.constant[3]:0;
873
- }
874
- }
875
- else{
876
- if(v16(v232.buffer)){
877
- v240=v8.createStream(34962,v232.buffer);
878
- }
879
- else{
880
- v240=v8.getBuffer(v232.buffer);
881
- }
882
- v243="type" in v232?v49[v232.type]:v240.dtype;
883
- v242=!!v232.normalized;
884
- v241=v232.size|0;
885
- v244=v232.offset|0;
886
- v245=v232.stride|0;
887
- v246=v232.divisor|0;
888
- }
889
- }
890
- v248=g247.location;
891
- v249=v10[v248];
892
- if(v235===1){
893
- if(!v249.buffer){
894
- v1.enableVertexAttribArray(v248);
895
- }
896
- v250=v241||1;
897
- if(v249.type!==v243||v249.size!==v250||v249.buffer!==v240||v249.normalized!==v242||v249.offset!==v244||v249.stride!==v245){
898
- v1.bindBuffer(34962,v240.buffer);
899
- v1.vertexAttribPointer(v248,v250,v243,v242,v245,v244);
900
- v249.type=v243;
901
- v249.size=v250;
902
- v249.buffer=v240;
903
- v249.normalized=v242;
904
- v249.offset=v244;
905
- v249.stride=v245;
906
- }
907
- if(v249.divisor!==v246){
908
- v110.vertexAttribDivisorANGLE(v248,v246);
909
- v249.divisor=v246;
910
- }
911
- }
912
- else{
913
- if(v249.buffer){
914
- v1.disableVertexAttribArray(v248);
915
- v249.buffer=null;
916
- }
917
- if(v249.x!==v236||v249.y!==v237||v249.z!==v238||v249.w!==v239){
918
- v1.vertexAttrib4f(v248,v236,v237,v238,v239);
919
- v249.x=v236;
920
- v249.y=v237;
921
- v249.z=v238;
922
- v249.w=v239;
923
- }
924
- }
925
- v252=g251.call(this,v2,a0,0);
926
- if(!(v252&&(typeof v252==="object"||typeof v252==="function")&&(v16(v252)||v8.getBuffer(v252)||v8.getBuffer(v252.buffer)||v16(v252.buffer)||("constant" in v252&&(typeof v252.constant==="number"||v17(v252.constant))))))g18.commandRaise(g253,g19);
927
- v254=false;
928
- v255=1;
929
- v256=0;
930
- v257=0;
931
- v258=0;
932
- v259=0;
933
- v260=null;
934
- v261=0;
935
- v262=false;
936
- v263=5126;
937
- v264=0;
938
- v265=0;
939
- v266=0;
940
- if(v16(v252)){
941
- v254=true;
942
- v260=v8.createStream(34962,v252);
943
- v263=v260.dtype;
944
- }
945
- else{
946
- v260=v8.getBuffer(v252);
947
- if(v260){
948
- v263=v260.dtype;
949
- }
950
- else if("constant" in v252){
951
- v255=2;
952
- if(typeof v252.constant === "number"){
953
- v256=v252.constant;
954
- v257=v258=v259=0;
955
- }
956
- else{
957
- v256=v252.constant.length>0?v252.constant[0]:0;
958
- v257=v252.constant.length>1?v252.constant[1]:0;
959
- v258=v252.constant.length>2?v252.constant[2]:0;
960
- v259=v252.constant.length>3?v252.constant[3]:0;
961
- }
962
- }
963
- else{
964
- if(v16(v252.buffer)){
965
- v260=v8.createStream(34962,v252.buffer);
966
- }
967
- else{
968
- v260=v8.getBuffer(v252.buffer);
969
- }
970
- v263="type" in v252?v49[v252.type]:v260.dtype;
971
- v262=!!v252.normalized;
972
- v261=v252.size|0;
973
- v264=v252.offset|0;
974
- v265=v252.stride|0;
975
- v266=v252.divisor|0;
976
- }
977
- }
978
- v268=g267.location;
979
- v269=v10[v268];
980
- if(v255===1){
981
- if(!v269.buffer){
982
- v1.enableVertexAttribArray(v268);
983
- }
984
- v270=v261||1;
985
- if(v269.type!==v263||v269.size!==v270||v269.buffer!==v260||v269.normalized!==v262||v269.offset!==v264||v269.stride!==v265){
986
- v1.bindBuffer(34962,v260.buffer);
987
- v1.vertexAttribPointer(v268,v270,v263,v262,v265,v264);
988
- v269.type=v263;
989
- v269.size=v270;
990
- v269.buffer=v260;
991
- v269.normalized=v262;
992
- v269.offset=v264;
993
- v269.stride=v265;
994
- }
995
- if(v269.divisor!==v266){
996
- v110.vertexAttribDivisorANGLE(v268,v266);
997
- v269.divisor=v266;
998
- }
999
- }
1000
- else{
1001
- if(v269.buffer){
1002
- v1.disableVertexAttribArray(v268);
1003
- v269.buffer=null;
1004
- }
1005
- if(v269.x!==v256||v269.y!==v257||v269.z!==v258||v269.w!==v259){
1006
- v1.vertexAttrib4f(v268,v256,v257,v258,v259);
1007
- v269.x=v256;
1008
- v269.y=v257;
1009
- v269.z=v258;
1010
- v269.w=v259;
1011
- }
1012
- }
1013
- v272=g271.call(this,v2,a0,0);
1014
- if(!(v272&&(typeof v272==="object"||typeof v272==="function")&&(v16(v272)||v8.getBuffer(v272)||v8.getBuffer(v272.buffer)||v16(v272.buffer)||("constant" in v272&&(typeof v272.constant==="number"||v17(v272.constant))))))g18.commandRaise(g273,g19);
1015
- v274=false;
1016
- v275=1;
1017
- v276=0;
1018
- v277=0;
1019
- v278=0;
1020
- v279=0;
1021
- v280=null;
1022
- v281=0;
1023
- v282=false;
1024
- v283=5126;
1025
- v284=0;
1026
- v285=0;
1027
- v286=0;
1028
- if(v16(v272)){
1029
- v274=true;
1030
- v280=v8.createStream(34962,v272);
1031
- v283=v280.dtype;
1032
- }
1033
- else{
1034
- v280=v8.getBuffer(v272);
1035
- if(v280){
1036
- v283=v280.dtype;
1037
- }
1038
- else if("constant" in v272){
1039
- v275=2;
1040
- if(typeof v272.constant === "number"){
1041
- v276=v272.constant;
1042
- v277=v278=v279=0;
1043
- }
1044
- else{
1045
- v276=v272.constant.length>0?v272.constant[0]:0;
1046
- v277=v272.constant.length>1?v272.constant[1]:0;
1047
- v278=v272.constant.length>2?v272.constant[2]:0;
1048
- v279=v272.constant.length>3?v272.constant[3]:0;
1049
- }
1050
- }
1051
- else{
1052
- if(v16(v272.buffer)){
1053
- v280=v8.createStream(34962,v272.buffer);
1054
- }
1055
- else{
1056
- v280=v8.getBuffer(v272.buffer);
1057
- }
1058
- v283="type" in v272?v49[v272.type]:v280.dtype;
1059
- v282=!!v272.normalized;
1060
- v281=v272.size|0;
1061
- v284=v272.offset|0;
1062
- v285=v272.stride|0;
1063
- v286=v272.divisor|0;
1064
- }
1065
- }
1066
- v288=g287.location;
1067
- v289=v10[v288];
1068
- if(v275===1){
1069
- if(!v289.buffer){
1070
- v1.enableVertexAttribArray(v288);
1071
- }
1072
- v290=v281||1;
1073
- if(v289.type!==v283||v289.size!==v290||v289.buffer!==v280||v289.normalized!==v282||v289.offset!==v284||v289.stride!==v285){
1074
- v1.bindBuffer(34962,v280.buffer);
1075
- v1.vertexAttribPointer(v288,v290,v283,v282,v285,v284);
1076
- v289.type=v283;
1077
- v289.size=v290;
1078
- v289.buffer=v280;
1079
- v289.normalized=v282;
1080
- v289.offset=v284;
1081
- v289.stride=v285;
1082
- }
1083
- if(v289.divisor!==v286){
1084
- v110.vertexAttribDivisorANGLE(v288,v286);
1085
- v289.divisor=v286;
1086
- }
1087
- }
1088
- else{
1089
- if(v289.buffer){
1090
- v1.disableVertexAttribArray(v288);
1091
- v289.buffer=null;
1092
- }
1093
- if(v289.x!==v276||v289.y!==v277||v289.z!==v278||v289.w!==v279){
1094
- v1.vertexAttrib4f(v288,v276,v277,v278,v279);
1095
- v289.x=v276;
1096
- v289.y=v277;
1097
- v289.z=v278;
1098
- v289.w=v279;
1099
- }
1100
- }
1101
- v1.uniform1i(g291.location,false);
1102
- v293=a0["markerTexture"];
1103
- if(v293&&v293._reglType==="framebuffer"){
1104
- v293=v293.color[0];
1105
- }
1106
- if(!(typeof v293==="function"&&v293._reglType==="texture2d"))g18.commandRaise(g294,g19);
1107
- v295=v293._texture;
1108
- v1.uniform1i(g292.location,v295.bind());
1109
- v297=a0["opacity"];
1110
- if(!(typeof v297==="number"))g18.commandRaise(g298,g19);
1111
- v1.uniform1f(g296.location,v297);
1112
- v301=g300.call(this,v2,a0,0);
1113
- if(!(v17(v301)&&v301.length===2))g18.commandRaise(g302,g19);
1114
- v303=v301[0];
1115
- v304=v301[1];
1116
- v1.uniform2f(g299.location,v303,v304);
1117
- v1.uniform1i(g305.location,g306.bind());
1118
- v308=v2["pixelRatio"];
1119
- if(!(typeof v308==="number"))g18.commandRaise(g309,g19);
1120
- v1.uniform1f(g307.location,v308);
1121
- v311=a0["scale"];
1122
- if(!(v17(v311)&&v311.length===2))g18.commandRaise(g312,g19);
1123
- v313=v311[0];
1124
- v314=v311[1];
1125
- v1.uniform2f(g310.location,v313,v314);
1126
- v316=a0["scaleFract"];
1127
- if(!(v17(v316)&&v316.length===2))g18.commandRaise(g317,g19);
1128
- v318=v316[0];
1129
- v319=v316[1];
1130
- v1.uniform2f(g315.location,v318,v319);
1131
- v321=a0["translate"];
1132
- if(!(v17(v321)&&v321.length===2))g18.commandRaise(g322,g19);
1133
- v323=v321[0];
1134
- v324=v321[1];
1135
- v1.uniform2f(g320.location,v323,v324);
1136
- v326=a0["translateFract"];
1137
- if(!(v17(v326)&&v326.length===2))g18.commandRaise(g327,g19);
1138
- v328=v326[0];
1139
- v329=v326[1];
1140
- v1.uniform2f(g325.location,v328,v329);
1141
- v330=a0["elements"];
1142
- v331=null;
1143
- v332=v16(v330);
1144
- if(v332){
1145
- v331=v7.createStream(v330);
1146
- }
1147
- else{
1148
- v331=v7.getElements(v330);
1149
- if(!(!v330||v331))g18.commandRaise(g333,g19);
1150
- }
1151
- if(v331)v1.bindBuffer(34963,v331.buffer.buffer);
1152
- v334=a0["offset"];
1153
- if(!(v334>=0))g18.commandRaise(g335,g19);
1154
- v336=a0["count"];
1155
- if(!(typeof v336==="number"&&v336>=0&&v336===(v336|0)))g18.commandRaise(g337,g19);
1156
- if(v336){
1157
- v338=v6.instances;
1158
- if(v338>0){
1159
- if(v331){
1160
- v110.drawElementsInstancedANGLE(0,v336,v331.type,v334<<((v331.type-5121)>>1),v338);
1161
- }
1162
- else{
1163
- v110.drawArraysInstancedANGLE(0,v334,v336,v338);
1164
- }
1165
- }
1166
- else if(v338<0){
1167
- if(v331){
1168
- v1.drawElements(0,v336,v331.type,v334<<((v331.type-5121)>>1));
1169
- }
1170
- else{
1171
- v1.drawArrays(0,v334,v336);
1172
- }
1173
- }
1174
- v5.dirty=true;
1175
- v11.setVAO(null);
1176
- v2.viewportWidth=v95;
1177
- v2.viewportHeight=v96;
1178
- if(v107){
1179
- g52.cpuTime+=performance.now()-v108;
1180
- }
1181
- if(v114){
1182
- v8.destroyStream(v120);
1183
- }
1184
- if(v134){
1185
- v8.destroyStream(v140);
1186
- }
1187
- if(v154){
1188
- v8.destroyStream(v160);
1189
- }
1190
- if(v174){
1191
- v8.destroyStream(v180);
1192
- }
1193
- if(v194){
1194
- v8.destroyStream(v200);
1195
- }
1196
- if(v214){
1197
- v8.destroyStream(v220);
1198
- }
1199
- if(v234){
1200
- v8.destroyStream(v240);
1201
- }
1202
- if(v254){
1203
- v8.destroyStream(v260);
1204
- }
1205
- if(v274){
1206
- v8.destroyStream(v280);
1207
- }
1208
- v295.unbind();
1209
- g306.unbind();
1210
- if(v332){
1211
- v7.destroyStream(v331);
1212
- }
1213
- }
1214
- }
1215
- ,"scope":function(a0,a1,a2){
1216
- var v339,v340,v341,v342,v343,v344,v345,v346,v347,v348,v349,v351,v353,v355,v357,v359,v361,v363,v365,v367,v369,v370,v371,v372,v373,v374,v375,v376,v377,v378,v380,v382,v383,v384,v385,v386,v387,v388,v389,v390,v391,v392,v394,v396,v399,v400,v402,v403,v405,v406,v408,v409,v411,v412,v414,v415,v417,v418,v420,v421,v423,v424,v425,v426,v427,v428,v429,v430,v431,v432,v433,v434,v435,v436,v437,v439,v440,v441,v442,v443,v444,v445,v446,v447,v448,v449,v450,v451,v452,v453,v454,v455,v456,v457,v458,v459,v460,v461,v462,v463,v464,v466,v467,v468,v469,v470,v471,v472,v473,v474,v475,v476,v477,v478,v479,v480,v481,v482,v483,v484,v485,v486,v487,v488,v489,v490,v491,v493,v494,v495,v496,v497,v498,v499,v500,v501,v502,v503,v504,v505,v506,v507,v508,v509,v510,v511,v512,v513,v514,v515,v516,v517,v518,v520,v521,v522,v523,v524,v525,v526,v527,v528,v529,v530,v531,v532,v533,v534,v535,v536,v537,v538,v539,v540,v541,v542,v543,v544,v545,v547,v548,v549,v550,v551,v552,v553,v554,v555,v556,v557,v558,v559,v560,v561,v562,v563,v564,v565,v566,v567,v568,v569,v570,v571,v572,v574,v575,v576,v577,v578,v579,v580,v581,v582,v583,v584,v585,v586,v587,v588,v589,v590,v591,v592,v593,v594,v595,v596,v597,v598,v599,v601,v602,v603,v604,v605,v606,v607,v608,v609,v610,v611,v612,v613,v614,v615,v616,v617,v618,v619,v620,v621,v622,v623,v624,v625,v626,v628,v629,v630,v631,v632,v633,v634,v635,v636,v637,v638,v639,v640,v641,v642,v643,v644,v645,v646,v647,v648,v649,v650,v651,v652,v653,v655,v656,v657,v658,v659,v660,v661,v662,v663,v664,v665,v666,v668,v670;
1217
- v339=a0["viewport"];
1218
- if(!(v339&&typeof v339==="object"))g18.commandRaise(g90,g19);
1219
- v340=v339.x|0;
1220
- v341=v339.y|0;
1221
- v342="width" in v339?v339.width|0:(v2.framebufferWidth-v340);
1222
- v343="height" in v339?v339.height|0:(v2.framebufferHeight-v341);
1223
- if(!(v342>=0&&v343>=0))g18.commandRaise(g90,g19);
1224
- v344=v2.viewportWidth;
1225
- v2.viewportWidth=v342;
1226
- v345=v2.viewportHeight;
1227
- v2.viewportHeight=v343;
1228
- v346=v42[0];
1229
- v42[0]=v340;
1230
- v347=v42[1];
1231
- v42[1]=v341;
1232
- v348=v42[2];
1233
- v42[2]=v342;
1234
- v349=v42[3];
1235
- v42[3]=v343;
1236
- v351=v20[0];
1237
- v20[0]=g350;
1238
- v353=v20[1];
1239
- v20[1]=g352;
1240
- v355=v20[2];
1241
- v20[2]=g354;
1242
- v357=v20[3];
1243
- v20[3]=g356;
1244
- v359=v4.blend_enable;
1245
- v4.blend_enable=g358;
1246
- v361=v24[0];
1247
- v24[0]=g360;
1248
- v363=v24[1];
1249
- v24[1]=g362;
1250
- v365=v24[2];
1251
- v24[2]=g364;
1252
- v367=v24[3];
1253
- v24[3]=g366;
1254
- v369=v4.depth_enable;
1255
- v4.depth_enable=g368;
1256
- v370=a0["viewport"];
1257
- if(!(v370&&typeof v370==="object"))g18.commandRaise(g100,g19);
1258
- v371=v370.x|0;
1259
- v372=v370.y|0;
1260
- v373="width" in v370?v370.width|0:(v2.framebufferWidth-v371);
1261
- v374="height" in v370?v370.height|0:(v2.framebufferHeight-v372);
1262
- if(!(v373>=0&&v374>=0))g18.commandRaise(g100,g19);
1263
- v375=v40[0];
1264
- v40[0]=v371;
1265
- v376=v40[1];
1266
- v40[1]=v372;
1267
- v377=v40[2];
1268
- v40[2]=v373;
1269
- v378=v40[3];
1270
- v40[3]=v374;
1271
- v380=v4.scissor_enable;
1272
- v4.scissor_enable=g379;
1273
- v382=v4.stencil_enable;
1274
- v4.stencil_enable=g381;
1275
- v383=v5.profile;
1276
- if(v383){
1277
- v384=performance.now();
1278
- g52.count++;
1279
- }
1280
- v385=a0["elements"];
1281
- v386=null;
1282
- v387=v16(v385);
1283
- if(v387){
1284
- v386=v7.createStream(v385);
1285
- }
1286
- else{
1287
- v386=v7.getElements(v385);
1288
- if(!(!v385||v386))g18.commandRaise(g333,g19);
1289
- }
1290
- v388=v6.elements;
1291
- v6.elements=v386;
1292
- v389=a0["offset"];
1293
- if(!(v389>=0))g18.commandRaise(g335,g19);
1294
- v390=v6.offset;
1295
- v6.offset=v389;
1296
- v391=a0["count"];
1297
- if(!(typeof v391==="number"&&v391>=0&&v391===(v391|0)))g18.commandRaise(g337,g19);
1298
- v392=v6.count;
1299
- v6.count=v391;
1300
- v394=v6.primitive;
1301
- v6.primitive=g393;
1302
- v396=v12[g395];
1303
- v12[g395]=false;
1304
- v399=v12[g398];
1305
- v12[g398]=g397;
1306
- v400=a0["opacity"];
1307
- v402=v12[g401];
1308
- v12[g401]=v400;
1309
- v403=g300.call(this,v2,a0,a2);
1310
- v405=v12[g404];
1311
- v12[g404]=v403;
1312
- v406=v2["pixelRatio"];
1313
- v408=v12[g407];
1314
- v12[g407]=v406;
1315
- v409=a0["scale"];
1316
- v411=v12[g410];
1317
- v12[g410]=v409;
1318
- v412=a0["scaleFract"];
1319
- v414=v12[g413];
1320
- v12[g413]=v412;
1321
- v415=a0["translate"];
1322
- v417=v12[g416];
1323
- v12[g416]=v415;
1324
- v418=a0["translateFract"];
1325
- v420=v12[g419];
1326
- v12[g419]=v418;
1327
- v421=a0["markerTexture"];
1328
- v423=v12[g422];
1329
- v12[g422]=v421;
1330
- v424=g211.call(this,v2,a0,a2);
1331
- if(!(v424&&(typeof v424==="object"||typeof v424==="function")&&(v16(v424)||v8.getBuffer(v424)||v8.getBuffer(v424.buffer)||v16(v424.buffer)||("constant" in v424&&(typeof v424.constant==="number"||v17(v424.constant))))))g18.commandRaise(g213,g19);
1332
- v425=false;
1333
- v426=1;
1334
- v427=0;
1335
- v428=0;
1336
- v429=0;
1337
- v430=0;
1338
- v431=null;
1339
- v432=0;
1340
- v433=false;
1341
- v434=5126;
1342
- v435=0;
1343
- v436=0;
1344
- v437=0;
1345
- if(v16(v424)){
1346
- v425=true;
1347
- v431=v8.createStream(34962,v424);
1348
- v434=v431.dtype;
1349
- }
1350
- else{
1351
- v431=v8.getBuffer(v424);
1352
- if(v431){
1353
- v434=v431.dtype;
1354
- }
1355
- else if("constant" in v424){
1356
- v426=2;
1357
- if(typeof v424.constant === "number"){
1358
- v427=v424.constant;
1359
- v428=v429=v430=0;
1360
- }
1361
- else{
1362
- v427=v424.constant.length>0?v424.constant[0]:0;
1363
- v428=v424.constant.length>1?v424.constant[1]:0;
1364
- v429=v424.constant.length>2?v424.constant[2]:0;
1365
- v430=v424.constant.length>3?v424.constant[3]:0;
1366
- }
1367
- }
1368
- else{
1369
- if(v16(v424.buffer)){
1370
- v431=v8.createStream(34962,v424.buffer);
1371
- }
1372
- else{
1373
- v431=v8.getBuffer(v424.buffer);
1374
- }
1375
- v434="type" in v424?v49[v424.type]:v431.dtype;
1376
- v433=!!v424.normalized;
1377
- v432=v424.size|0;
1378
- v435=v424.offset|0;
1379
- v436=v424.stride|0;
1380
- v437=v424.divisor|0;
1381
- }
1382
- }
1383
- v439=g438.state;
1384
- g438.state=v426;
1385
- v440=g438.x;
1386
- g438.x=v427;
1387
- v441=g438.y;
1388
- g438.y=v428;
1389
- v442=g438.z;
1390
- g438.z=v429;
1391
- v443=g438.w;
1392
- g438.w=v430;
1393
- v444=g438.buffer;
1394
- g438.buffer=v431;
1395
- v445=g438.size;
1396
- g438.size=v432;
1397
- v446=g438.normalized;
1398
- g438.normalized=v433;
1399
- v447=g438.type;
1400
- g438.type=v434;
1401
- v448=g438.offset;
1402
- g438.offset=v435;
1403
- v449=g438.stride;
1404
- g438.stride=v436;
1405
- v450=g438.divisor;
1406
- g438.divisor=v437;
1407
- v451=g251.call(this,v2,a0,a2);
1408
- if(!(v451&&(typeof v451==="object"||typeof v451==="function")&&(v16(v451)||v8.getBuffer(v451)||v8.getBuffer(v451.buffer)||v16(v451.buffer)||("constant" in v451&&(typeof v451.constant==="number"||v17(v451.constant))))))g18.commandRaise(g253,g19);
1409
- v452=false;
1410
- v453=1;
1411
- v454=0;
1412
- v455=0;
1413
- v456=0;
1414
- v457=0;
1415
- v458=null;
1416
- v459=0;
1417
- v460=false;
1418
- v461=5126;
1419
- v462=0;
1420
- v463=0;
1421
- v464=0;
1422
- if(v16(v451)){
1423
- v452=true;
1424
- v458=v8.createStream(34962,v451);
1425
- v461=v458.dtype;
1426
- }
1427
- else{
1428
- v458=v8.getBuffer(v451);
1429
- if(v458){
1430
- v461=v458.dtype;
1431
- }
1432
- else if("constant" in v451){
1433
- v453=2;
1434
- if(typeof v451.constant === "number"){
1435
- v454=v451.constant;
1436
- v455=v456=v457=0;
1437
- }
1438
- else{
1439
- v454=v451.constant.length>0?v451.constant[0]:0;
1440
- v455=v451.constant.length>1?v451.constant[1]:0;
1441
- v456=v451.constant.length>2?v451.constant[2]:0;
1442
- v457=v451.constant.length>3?v451.constant[3]:0;
1443
- }
1444
- }
1445
- else{
1446
- if(v16(v451.buffer)){
1447
- v458=v8.createStream(34962,v451.buffer);
1448
- }
1449
- else{
1450
- v458=v8.getBuffer(v451.buffer);
1451
- }
1452
- v461="type" in v451?v49[v451.type]:v458.dtype;
1453
- v460=!!v451.normalized;
1454
- v459=v451.size|0;
1455
- v462=v451.offset|0;
1456
- v463=v451.stride|0;
1457
- v464=v451.divisor|0;
1458
- }
1459
- }
1460
- v466=g465.state;
1461
- g465.state=v453;
1462
- v467=g465.x;
1463
- g465.x=v454;
1464
- v468=g465.y;
1465
- g465.y=v455;
1466
- v469=g465.z;
1467
- g465.z=v456;
1468
- v470=g465.w;
1469
- g465.w=v457;
1470
- v471=g465.buffer;
1471
- g465.buffer=v458;
1472
- v472=g465.size;
1473
- g465.size=v459;
1474
- v473=g465.normalized;
1475
- g465.normalized=v460;
1476
- v474=g465.type;
1477
- g465.type=v461;
1478
- v475=g465.offset;
1479
- g465.offset=v462;
1480
- v476=g465.stride;
1481
- g465.stride=v463;
1482
- v477=g465.divisor;
1483
- g465.divisor=v464;
1484
- v478=g231.call(this,v2,a0,a2);
1485
- if(!(v478&&(typeof v478==="object"||typeof v478==="function")&&(v16(v478)||v8.getBuffer(v478)||v8.getBuffer(v478.buffer)||v16(v478.buffer)||("constant" in v478&&(typeof v478.constant==="number"||v17(v478.constant))))))g18.commandRaise(g233,g19);
1486
- v479=false;
1487
- v480=1;
1488
- v481=0;
1489
- v482=0;
1490
- v483=0;
1491
- v484=0;
1492
- v485=null;
1493
- v486=0;
1494
- v487=false;
1495
- v488=5126;
1496
- v489=0;
1497
- v490=0;
1498
- v491=0;
1499
- if(v16(v478)){
1500
- v479=true;
1501
- v485=v8.createStream(34962,v478);
1502
- v488=v485.dtype;
1503
- }
1504
- else{
1505
- v485=v8.getBuffer(v478);
1506
- if(v485){
1507
- v488=v485.dtype;
1508
- }
1509
- else if("constant" in v478){
1510
- v480=2;
1511
- if(typeof v478.constant === "number"){
1512
- v481=v478.constant;
1513
- v482=v483=v484=0;
1514
- }
1515
- else{
1516
- v481=v478.constant.length>0?v478.constant[0]:0;
1517
- v482=v478.constant.length>1?v478.constant[1]:0;
1518
- v483=v478.constant.length>2?v478.constant[2]:0;
1519
- v484=v478.constant.length>3?v478.constant[3]:0;
1520
- }
1521
- }
1522
- else{
1523
- if(v16(v478.buffer)){
1524
- v485=v8.createStream(34962,v478.buffer);
1525
- }
1526
- else{
1527
- v485=v8.getBuffer(v478.buffer);
1528
- }
1529
- v488="type" in v478?v49[v478.type]:v485.dtype;
1530
- v487=!!v478.normalized;
1531
- v486=v478.size|0;
1532
- v489=v478.offset|0;
1533
- v490=v478.stride|0;
1534
- v491=v478.divisor|0;
1535
- }
1536
- }
1537
- v493=g492.state;
1538
- g492.state=v480;
1539
- v494=g492.x;
1540
- g492.x=v481;
1541
- v495=g492.y;
1542
- g492.y=v482;
1543
- v496=g492.z;
1544
- g492.z=v483;
1545
- v497=g492.w;
1546
- g492.w=v484;
1547
- v498=g492.buffer;
1548
- g492.buffer=v485;
1549
- v499=g492.size;
1550
- g492.size=v486;
1551
- v500=g492.normalized;
1552
- g492.normalized=v487;
1553
- v501=g492.type;
1554
- g492.type=v488;
1555
- v502=g492.offset;
1556
- g492.offset=v489;
1557
- v503=g492.stride;
1558
- g492.stride=v490;
1559
- v504=g492.divisor;
1560
- g492.divisor=v491;
1561
- v505=g271.call(this,v2,a0,a2);
1562
- if(!(v505&&(typeof v505==="object"||typeof v505==="function")&&(v16(v505)||v8.getBuffer(v505)||v8.getBuffer(v505.buffer)||v16(v505.buffer)||("constant" in v505&&(typeof v505.constant==="number"||v17(v505.constant))))))g18.commandRaise(g273,g19);
1563
- v506=false;
1564
- v507=1;
1565
- v508=0;
1566
- v509=0;
1567
- v510=0;
1568
- v511=0;
1569
- v512=null;
1570
- v513=0;
1571
- v514=false;
1572
- v515=5126;
1573
- v516=0;
1574
- v517=0;
1575
- v518=0;
1576
- if(v16(v505)){
1577
- v506=true;
1578
- v512=v8.createStream(34962,v505);
1579
- v515=v512.dtype;
1580
- }
1581
- else{
1582
- v512=v8.getBuffer(v505);
1583
- if(v512){
1584
- v515=v512.dtype;
1585
- }
1586
- else if("constant" in v505){
1587
- v507=2;
1588
- if(typeof v505.constant === "number"){
1589
- v508=v505.constant;
1590
- v509=v510=v511=0;
1591
- }
1592
- else{
1593
- v508=v505.constant.length>0?v505.constant[0]:0;
1594
- v509=v505.constant.length>1?v505.constant[1]:0;
1595
- v510=v505.constant.length>2?v505.constant[2]:0;
1596
- v511=v505.constant.length>3?v505.constant[3]:0;
1597
- }
1598
- }
1599
- else{
1600
- if(v16(v505.buffer)){
1601
- v512=v8.createStream(34962,v505.buffer);
1602
- }
1603
- else{
1604
- v512=v8.getBuffer(v505.buffer);
1605
- }
1606
- v515="type" in v505?v49[v505.type]:v512.dtype;
1607
- v514=!!v505.normalized;
1608
- v513=v505.size|0;
1609
- v516=v505.offset|0;
1610
- v517=v505.stride|0;
1611
- v518=v505.divisor|0;
1612
- }
1613
- }
1614
- v520=g519.state;
1615
- g519.state=v507;
1616
- v521=g519.x;
1617
- g519.x=v508;
1618
- v522=g519.y;
1619
- g519.y=v509;
1620
- v523=g519.z;
1621
- g519.z=v510;
1622
- v524=g519.w;
1623
- g519.w=v511;
1624
- v525=g519.buffer;
1625
- g519.buffer=v512;
1626
- v526=g519.size;
1627
- g519.size=v513;
1628
- v527=g519.normalized;
1629
- g519.normalized=v514;
1630
- v528=g519.type;
1631
- g519.type=v515;
1632
- v529=g519.offset;
1633
- g519.offset=v516;
1634
- v530=g519.stride;
1635
- g519.stride=v517;
1636
- v531=g519.divisor;
1637
- g519.divisor=v518;
1638
- v532=g191.call(this,v2,a0,a2);
1639
- if(!(v532&&(typeof v532==="object"||typeof v532==="function")&&(v16(v532)||v8.getBuffer(v532)||v8.getBuffer(v532.buffer)||v16(v532.buffer)||("constant" in v532&&(typeof v532.constant==="number"||v17(v532.constant))))))g18.commandRaise(g193,g19);
1640
- v533=false;
1641
- v534=1;
1642
- v535=0;
1643
- v536=0;
1644
- v537=0;
1645
- v538=0;
1646
- v539=null;
1647
- v540=0;
1648
- v541=false;
1649
- v542=5126;
1650
- v543=0;
1651
- v544=0;
1652
- v545=0;
1653
- if(v16(v532)){
1654
- v533=true;
1655
- v539=v8.createStream(34962,v532);
1656
- v542=v539.dtype;
1657
- }
1658
- else{
1659
- v539=v8.getBuffer(v532);
1660
- if(v539){
1661
- v542=v539.dtype;
1662
- }
1663
- else if("constant" in v532){
1664
- v534=2;
1665
- if(typeof v532.constant === "number"){
1666
- v535=v532.constant;
1667
- v536=v537=v538=0;
1668
- }
1669
- else{
1670
- v535=v532.constant.length>0?v532.constant[0]:0;
1671
- v536=v532.constant.length>1?v532.constant[1]:0;
1672
- v537=v532.constant.length>2?v532.constant[2]:0;
1673
- v538=v532.constant.length>3?v532.constant[3]:0;
1674
- }
1675
- }
1676
- else{
1677
- if(v16(v532.buffer)){
1678
- v539=v8.createStream(34962,v532.buffer);
1679
- }
1680
- else{
1681
- v539=v8.getBuffer(v532.buffer);
1682
- }
1683
- v542="type" in v532?v49[v532.type]:v539.dtype;
1684
- v541=!!v532.normalized;
1685
- v540=v532.size|0;
1686
- v543=v532.offset|0;
1687
- v544=v532.stride|0;
1688
- v545=v532.divisor|0;
1689
- }
1690
- }
1691
- v547=g546.state;
1692
- g546.state=v534;
1693
- v548=g546.x;
1694
- g546.x=v535;
1695
- v549=g546.y;
1696
- g546.y=v536;
1697
- v550=g546.z;
1698
- g546.z=v537;
1699
- v551=g546.w;
1700
- g546.w=v538;
1701
- v552=g546.buffer;
1702
- g546.buffer=v539;
1703
- v553=g546.size;
1704
- g546.size=v540;
1705
- v554=g546.normalized;
1706
- g546.normalized=v541;
1707
- v555=g546.type;
1708
- g546.type=v542;
1709
- v556=g546.offset;
1710
- g546.offset=v543;
1711
- v557=g546.stride;
1712
- g546.stride=v544;
1713
- v558=g546.divisor;
1714
- g546.divisor=v545;
1715
- v559=g131.call(this,v2,a0,a2);
1716
- if(!(v559&&(typeof v559==="object"||typeof v559==="function")&&(v16(v559)||v8.getBuffer(v559)||v8.getBuffer(v559.buffer)||v16(v559.buffer)||("constant" in v559&&(typeof v559.constant==="number"||v17(v559.constant))))))g18.commandRaise(g133,g19);
1717
- v560=false;
1718
- v561=1;
1719
- v562=0;
1720
- v563=0;
1721
- v564=0;
1722
- v565=0;
1723
- v566=null;
1724
- v567=0;
1725
- v568=false;
1726
- v569=5126;
1727
- v570=0;
1728
- v571=0;
1729
- v572=0;
1730
- if(v16(v559)){
1731
- v560=true;
1732
- v566=v8.createStream(34962,v559);
1733
- v569=v566.dtype;
1734
- }
1735
- else{
1736
- v566=v8.getBuffer(v559);
1737
- if(v566){
1738
- v569=v566.dtype;
1739
- }
1740
- else if("constant" in v559){
1741
- v561=2;
1742
- if(typeof v559.constant === "number"){
1743
- v562=v559.constant;
1744
- v563=v564=v565=0;
1745
- }
1746
- else{
1747
- v562=v559.constant.length>0?v559.constant[0]:0;
1748
- v563=v559.constant.length>1?v559.constant[1]:0;
1749
- v564=v559.constant.length>2?v559.constant[2]:0;
1750
- v565=v559.constant.length>3?v559.constant[3]:0;
1751
- }
1752
- }
1753
- else{
1754
- if(v16(v559.buffer)){
1755
- v566=v8.createStream(34962,v559.buffer);
1756
- }
1757
- else{
1758
- v566=v8.getBuffer(v559.buffer);
1759
- }
1760
- v569="type" in v559?v49[v559.type]:v566.dtype;
1761
- v568=!!v559.normalized;
1762
- v567=v559.size|0;
1763
- v570=v559.offset|0;
1764
- v571=v559.stride|0;
1765
- v572=v559.divisor|0;
1766
- }
1767
- }
1768
- v574=g573.state;
1769
- g573.state=v561;
1770
- v575=g573.x;
1771
- g573.x=v562;
1772
- v576=g573.y;
1773
- g573.y=v563;
1774
- v577=g573.z;
1775
- g573.z=v564;
1776
- v578=g573.w;
1777
- g573.w=v565;
1778
- v579=g573.buffer;
1779
- g573.buffer=v566;
1780
- v580=g573.size;
1781
- g573.size=v567;
1782
- v581=g573.normalized;
1783
- g573.normalized=v568;
1784
- v582=g573.type;
1785
- g573.type=v569;
1786
- v583=g573.offset;
1787
- g573.offset=v570;
1788
- v584=g573.stride;
1789
- g573.stride=v571;
1790
- v585=g573.divisor;
1791
- g573.divisor=v572;
1792
- v586=g151.call(this,v2,a0,a2);
1793
- if(!(v586&&(typeof v586==="object"||typeof v586==="function")&&(v16(v586)||v8.getBuffer(v586)||v8.getBuffer(v586.buffer)||v16(v586.buffer)||("constant" in v586&&(typeof v586.constant==="number"||v17(v586.constant))))))g18.commandRaise(g153,g19);
1794
- v587=false;
1795
- v588=1;
1796
- v589=0;
1797
- v590=0;
1798
- v591=0;
1799
- v592=0;
1800
- v593=null;
1801
- v594=0;
1802
- v595=false;
1803
- v596=5126;
1804
- v597=0;
1805
- v598=0;
1806
- v599=0;
1807
- if(v16(v586)){
1808
- v587=true;
1809
- v593=v8.createStream(34962,v586);
1810
- v596=v593.dtype;
1811
- }
1812
- else{
1813
- v593=v8.getBuffer(v586);
1814
- if(v593){
1815
- v596=v593.dtype;
1816
- }
1817
- else if("constant" in v586){
1818
- v588=2;
1819
- if(typeof v586.constant === "number"){
1820
- v589=v586.constant;
1821
- v590=v591=v592=0;
1822
- }
1823
- else{
1824
- v589=v586.constant.length>0?v586.constant[0]:0;
1825
- v590=v586.constant.length>1?v586.constant[1]:0;
1826
- v591=v586.constant.length>2?v586.constant[2]:0;
1827
- v592=v586.constant.length>3?v586.constant[3]:0;
1828
- }
1829
- }
1830
- else{
1831
- if(v16(v586.buffer)){
1832
- v593=v8.createStream(34962,v586.buffer);
1833
- }
1834
- else{
1835
- v593=v8.getBuffer(v586.buffer);
1836
- }
1837
- v596="type" in v586?v49[v586.type]:v593.dtype;
1838
- v595=!!v586.normalized;
1839
- v594=v586.size|0;
1840
- v597=v586.offset|0;
1841
- v598=v586.stride|0;
1842
- v599=v586.divisor|0;
1843
- }
1844
- }
1845
- v601=g600.state;
1846
- g600.state=v588;
1847
- v602=g600.x;
1848
- g600.x=v589;
1849
- v603=g600.y;
1850
- g600.y=v590;
1851
- v604=g600.z;
1852
- g600.z=v591;
1853
- v605=g600.w;
1854
- g600.w=v592;
1855
- v606=g600.buffer;
1856
- g600.buffer=v593;
1857
- v607=g600.size;
1858
- g600.size=v594;
1859
- v608=g600.normalized;
1860
- g600.normalized=v595;
1861
- v609=g600.type;
1862
- g600.type=v596;
1863
- v610=g600.offset;
1864
- g600.offset=v597;
1865
- v611=g600.stride;
1866
- g600.stride=v598;
1867
- v612=g600.divisor;
1868
- g600.divisor=v599;
1869
- v613=g111.call(this,v2,a0,a2);
1870
- if(!(v613&&(typeof v613==="object"||typeof v613==="function")&&(v16(v613)||v8.getBuffer(v613)||v8.getBuffer(v613.buffer)||v16(v613.buffer)||("constant" in v613&&(typeof v613.constant==="number"||v17(v613.constant))))))g18.commandRaise(g113,g19);
1871
- v614=false;
1872
- v615=1;
1873
- v616=0;
1874
- v617=0;
1875
- v618=0;
1876
- v619=0;
1877
- v620=null;
1878
- v621=0;
1879
- v622=false;
1880
- v623=5126;
1881
- v624=0;
1882
- v625=0;
1883
- v626=0;
1884
- if(v16(v613)){
1885
- v614=true;
1886
- v620=v8.createStream(34962,v613);
1887
- v623=v620.dtype;
1888
- }
1889
- else{
1890
- v620=v8.getBuffer(v613);
1891
- if(v620){
1892
- v623=v620.dtype;
1893
- }
1894
- else if("constant" in v613){
1895
- v615=2;
1896
- if(typeof v613.constant === "number"){
1897
- v616=v613.constant;
1898
- v617=v618=v619=0;
1899
- }
1900
- else{
1901
- v616=v613.constant.length>0?v613.constant[0]:0;
1902
- v617=v613.constant.length>1?v613.constant[1]:0;
1903
- v618=v613.constant.length>2?v613.constant[2]:0;
1904
- v619=v613.constant.length>3?v613.constant[3]:0;
1905
- }
1906
- }
1907
- else{
1908
- if(v16(v613.buffer)){
1909
- v620=v8.createStream(34962,v613.buffer);
1910
- }
1911
- else{
1912
- v620=v8.getBuffer(v613.buffer);
1913
- }
1914
- v623="type" in v613?v49[v613.type]:v620.dtype;
1915
- v622=!!v613.normalized;
1916
- v621=v613.size|0;
1917
- v624=v613.offset|0;
1918
- v625=v613.stride|0;
1919
- v626=v613.divisor|0;
1920
- }
1921
- }
1922
- v628=g627.state;
1923
- g627.state=v615;
1924
- v629=g627.x;
1925
- g627.x=v616;
1926
- v630=g627.y;
1927
- g627.y=v617;
1928
- v631=g627.z;
1929
- g627.z=v618;
1930
- v632=g627.w;
1931
- g627.w=v619;
1932
- v633=g627.buffer;
1933
- g627.buffer=v620;
1934
- v634=g627.size;
1935
- g627.size=v621;
1936
- v635=g627.normalized;
1937
- g627.normalized=v622;
1938
- v636=g627.type;
1939
- g627.type=v623;
1940
- v637=g627.offset;
1941
- g627.offset=v624;
1942
- v638=g627.stride;
1943
- g627.stride=v625;
1944
- v639=g627.divisor;
1945
- g627.divisor=v626;
1946
- v640=g171.call(this,v2,a0,a2);
1947
- if(!(v640&&(typeof v640==="object"||typeof v640==="function")&&(v16(v640)||v8.getBuffer(v640)||v8.getBuffer(v640.buffer)||v16(v640.buffer)||("constant" in v640&&(typeof v640.constant==="number"||v17(v640.constant))))))g18.commandRaise(g173,g19);
1948
- v641=false;
1949
- v642=1;
1950
- v643=0;
1951
- v644=0;
1952
- v645=0;
1953
- v646=0;
1954
- v647=null;
1955
- v648=0;
1956
- v649=false;
1957
- v650=5126;
1958
- v651=0;
1959
- v652=0;
1960
- v653=0;
1961
- if(v16(v640)){
1962
- v641=true;
1963
- v647=v8.createStream(34962,v640);
1964
- v650=v647.dtype;
1965
- }
1966
- else{
1967
- v647=v8.getBuffer(v640);
1968
- if(v647){
1969
- v650=v647.dtype;
1970
- }
1971
- else if("constant" in v640){
1972
- v642=2;
1973
- if(typeof v640.constant === "number"){
1974
- v643=v640.constant;
1975
- v644=v645=v646=0;
1976
- }
1977
- else{
1978
- v643=v640.constant.length>0?v640.constant[0]:0;
1979
- v644=v640.constant.length>1?v640.constant[1]:0;
1980
- v645=v640.constant.length>2?v640.constant[2]:0;
1981
- v646=v640.constant.length>3?v640.constant[3]:0;
1982
- }
1983
- }
1984
- else{
1985
- if(v16(v640.buffer)){
1986
- v647=v8.createStream(34962,v640.buffer);
1987
- }
1988
- else{
1989
- v647=v8.getBuffer(v640.buffer);
1990
- }
1991
- v650="type" in v640?v49[v640.type]:v647.dtype;
1992
- v649=!!v640.normalized;
1993
- v648=v640.size|0;
1994
- v651=v640.offset|0;
1995
- v652=v640.stride|0;
1996
- v653=v640.divisor|0;
1997
- }
1998
- }
1999
- v655=g654.state;
2000
- g654.state=v642;
2001
- v656=g654.x;
2002
- g654.x=v643;
2003
- v657=g654.y;
2004
- g654.y=v644;
2005
- v658=g654.z;
2006
- g654.z=v645;
2007
- v659=g654.w;
2008
- g654.w=v646;
2009
- v660=g654.buffer;
2010
- g654.buffer=v647;
2011
- v661=g654.size;
2012
- g654.size=v648;
2013
- v662=g654.normalized;
2014
- g654.normalized=v649;
2015
- v663=g654.type;
2016
- g654.type=v650;
2017
- v664=g654.offset;
2018
- g654.offset=v651;
2019
- v665=g654.stride;
2020
- g654.stride=v652;
2021
- v666=g654.divisor;
2022
- g654.divisor=v653;
2023
- v668=v9.vert;
2024
- v9.vert=g667;
2025
- v670=v9.frag;
2026
- v9.frag=g669;
2027
- v5.dirty=true;
2028
- a1(v2,a0,a2);
2029
- v2.viewportWidth=v344;
2030
- v2.viewportHeight=v345;
2031
- v42[0]=v346;
2032
- v42[1]=v347;
2033
- v42[2]=v348;
2034
- v42[3]=v349;
2035
- v20[0]=v351;
2036
- v20[1]=v353;
2037
- v20[2]=v355;
2038
- v20[3]=v357;
2039
- v4.blend_enable=v359;
2040
- v24[0]=v361;
2041
- v24[1]=v363;
2042
- v24[2]=v365;
2043
- v24[3]=v367;
2044
- v4.depth_enable=v369;
2045
- v40[0]=v375;
2046
- v40[1]=v376;
2047
- v40[2]=v377;
2048
- v40[3]=v378;
2049
- v4.scissor_enable=v380;
2050
- v4.stencil_enable=v382;
2051
- if(v383){
2052
- g52.cpuTime+=performance.now()-v384;
2053
- }
2054
- if(v387){
2055
- v7.destroyStream(v386);
2056
- }
2057
- v6.elements=v388;
2058
- v6.offset=v390;
2059
- v6.count=v392;
2060
- v6.primitive=v394;
2061
- v12[g395]=v396;
2062
- v12[g398]=v399;
2063
- v12[g401]=v402;
2064
- v12[g404]=v405;
2065
- v12[g407]=v408;
2066
- v12[g410]=v411;
2067
- v12[g413]=v414;
2068
- v12[g416]=v417;
2069
- v12[g419]=v420;
2070
- v12[g422]=v423;
2071
- if(v425){
2072
- v8.destroyStream(v431);
2073
- }
2074
- g438.state=v439;
2075
- g438.x=v440;
2076
- g438.y=v441;
2077
- g438.z=v442;
2078
- g438.w=v443;
2079
- g438.buffer=v444;
2080
- g438.size=v445;
2081
- g438.normalized=v446;
2082
- g438.type=v447;
2083
- g438.offset=v448;
2084
- g438.stride=v449;
2085
- g438.divisor=v450;
2086
- if(v452){
2087
- v8.destroyStream(v458);
2088
- }
2089
- g465.state=v466;
2090
- g465.x=v467;
2091
- g465.y=v468;
2092
- g465.z=v469;
2093
- g465.w=v470;
2094
- g465.buffer=v471;
2095
- g465.size=v472;
2096
- g465.normalized=v473;
2097
- g465.type=v474;
2098
- g465.offset=v475;
2099
- g465.stride=v476;
2100
- g465.divisor=v477;
2101
- if(v479){
2102
- v8.destroyStream(v485);
2103
- }
2104
- g492.state=v493;
2105
- g492.x=v494;
2106
- g492.y=v495;
2107
- g492.z=v496;
2108
- g492.w=v497;
2109
- g492.buffer=v498;
2110
- g492.size=v499;
2111
- g492.normalized=v500;
2112
- g492.type=v501;
2113
- g492.offset=v502;
2114
- g492.stride=v503;
2115
- g492.divisor=v504;
2116
- if(v506){
2117
- v8.destroyStream(v512);
2118
- }
2119
- g519.state=v520;
2120
- g519.x=v521;
2121
- g519.y=v522;
2122
- g519.z=v523;
2123
- g519.w=v524;
2124
- g519.buffer=v525;
2125
- g519.size=v526;
2126
- g519.normalized=v527;
2127
- g519.type=v528;
2128
- g519.offset=v529;
2129
- g519.stride=v530;
2130
- g519.divisor=v531;
2131
- if(v533){
2132
- v8.destroyStream(v539);
2133
- }
2134
- g546.state=v547;
2135
- g546.x=v548;
2136
- g546.y=v549;
2137
- g546.z=v550;
2138
- g546.w=v551;
2139
- g546.buffer=v552;
2140
- g546.size=v553;
2141
- g546.normalized=v554;
2142
- g546.type=v555;
2143
- g546.offset=v556;
2144
- g546.stride=v557;
2145
- g546.divisor=v558;
2146
- if(v560){
2147
- v8.destroyStream(v566);
2148
- }
2149
- g573.state=v574;
2150
- g573.x=v575;
2151
- g573.y=v576;
2152
- g573.z=v577;
2153
- g573.w=v578;
2154
- g573.buffer=v579;
2155
- g573.size=v580;
2156
- g573.normalized=v581;
2157
- g573.type=v582;
2158
- g573.offset=v583;
2159
- g573.stride=v584;
2160
- g573.divisor=v585;
2161
- if(v587){
2162
- v8.destroyStream(v593);
2163
- }
2164
- g600.state=v601;
2165
- g600.x=v602;
2166
- g600.y=v603;
2167
- g600.z=v604;
2168
- g600.w=v605;
2169
- g600.buffer=v606;
2170
- g600.size=v607;
2171
- g600.normalized=v608;
2172
- g600.type=v609;
2173
- g600.offset=v610;
2174
- g600.stride=v611;
2175
- g600.divisor=v612;
2176
- if(v614){
2177
- v8.destroyStream(v620);
2178
- }
2179
- g627.state=v628;
2180
- g627.x=v629;
2181
- g627.y=v630;
2182
- g627.z=v631;
2183
- g627.w=v632;
2184
- g627.buffer=v633;
2185
- g627.size=v634;
2186
- g627.normalized=v635;
2187
- g627.type=v636;
2188
- g627.offset=v637;
2189
- g627.stride=v638;
2190
- g627.divisor=v639;
2191
- if(v641){
2192
- v8.destroyStream(v647);
2193
- }
2194
- g654.state=v655;
2195
- g654.x=v656;
2196
- g654.y=v657;
2197
- g654.z=v658;
2198
- g654.w=v659;
2199
- g654.buffer=v660;
2200
- g654.size=v661;
2201
- g654.normalized=v662;
2202
- g654.type=v663;
2203
- g654.offset=v664;
2204
- g654.stride=v665;
2205
- g654.divisor=v666;
2206
- v9.vert=v668;
2207
- v9.frag=v670;
2208
- v5.dirty=true;
2209
- }
2210
- ,"batch":function(a0,a1){
2211
- var v671,v672,v711,v712,v713,v714,v715;
2212
- v671=v14.angle_instanced_arrays;
2213
- v672=v13.next;
2214
- if(v672!==v13.cur){
2215
- if(v672){
2216
- v1.bindFramebuffer(36160,v672.framebuffer);
2217
- }
2218
- else{
2219
- v1.bindFramebuffer(36160,null);
2220
- }
2221
- v13.cur=v672;
2222
- }
2223
- if(v5.dirty){
2224
- var v673,v674,v675,v676,v677,v678,v679,v680,v681,v682,v683,v684,v685,v686,v687,v688,v689,v690,v691,v692,v693,v694,v695,v696,v697,v698,v699,v700,v701,v702,v703,v704,v705,v706;
2225
- v673=v4.dither;
2226
- if(v673!==v5.dither){
2227
- if(v673){
2228
- v1.enable(3024);
2229
- }
2230
- else{
2231
- v1.disable(3024);
2232
- }
2233
- v5.dither=v673;
2234
- }
2235
- v674=v22[0];
2236
- v675=v22[1];
2237
- if(v674!==v23[0]||v675!==v23[1]){
2238
- v1.blendEquationSeparate(v674,v675);
2239
- v23[0]=v674;
2240
- v23[1]=v675;
2241
- }
2242
- v676=v4.depth_func;
2243
- if(v676!==v5.depth_func){
2244
- v1.depthFunc(v676);
2245
- v5.depth_func=v676;
2246
- }
2247
- v677=v26[0];
2248
- v678=v26[1];
2249
- if(v677!==v27[0]||v678!==v27[1]){
2250
- v1.depthRange(v677,v678);
2251
- v27[0]=v677;
2252
- v27[1]=v678;
2253
- }
2254
- v679=v4.depth_mask;
2255
- if(v679!==v5.depth_mask){
2256
- v1.depthMask(v679);
2257
- v5.depth_mask=v679;
2258
- }
2259
- v680=v28[0];
2260
- v681=v28[1];
2261
- v682=v28[2];
2262
- v683=v28[3];
2263
- if(v680!==v29[0]||v681!==v29[1]||v682!==v29[2]||v683!==v29[3]){
2264
- v1.colorMask(v680,v681,v682,v683);
2265
- v29[0]=v680;
2266
- v29[1]=v681;
2267
- v29[2]=v682;
2268
- v29[3]=v683;
2269
- }
2270
- v684=v4.cull_enable;
2271
- if(v684!==v5.cull_enable){
2272
- if(v684){
2273
- v1.enable(2884);
2274
- }
2275
- else{
2276
- v1.disable(2884);
2277
- }
2278
- v5.cull_enable=v684;
2279
- }
2280
- v685=v4.cull_face;
2281
- if(v685!==v5.cull_face){
2282
- v1.cullFace(v685);
2283
- v5.cull_face=v685;
2284
- }
2285
- v686=v4.frontFace;
2286
- if(v686!==v5.frontFace){
2287
- v1.frontFace(v686);
2288
- v5.frontFace=v686;
2289
- }
2290
- v687=v4.lineWidth;
2291
- if(v687!==v5.lineWidth){
2292
- v1.lineWidth(v687);
2293
- v5.lineWidth=v687;
2294
- }
2295
- v688=v4.polygonOffset_enable;
2296
- if(v688!==v5.polygonOffset_enable){
2297
- if(v688){
2298
- v1.enable(32823);
2299
- }
2300
- else{
2301
- v1.disable(32823);
2302
- }
2303
- v5.polygonOffset_enable=v688;
2304
- }
2305
- v689=v30[0];
2306
- v690=v30[1];
2307
- if(v689!==v31[0]||v690!==v31[1]){
2308
- v1.polygonOffset(v689,v690);
2309
- v31[0]=v689;
2310
- v31[1]=v690;
2311
- }
2312
- v691=v4.sample_alpha;
2313
- if(v691!==v5.sample_alpha){
2314
- if(v691){
2315
- v1.enable(32926);
2316
- }
2317
- else{
2318
- v1.disable(32926);
2319
- }
2320
- v5.sample_alpha=v691;
2321
- }
2322
- v692=v4.sample_enable;
2323
- if(v692!==v5.sample_enable){
2324
- if(v692){
2325
- v1.enable(32928);
2326
- }
2327
- else{
2328
- v1.disable(32928);
2329
- }
2330
- v5.sample_enable=v692;
2331
- }
2332
- v693=v32[0];
2333
- v694=v32[1];
2334
- if(v693!==v33[0]||v694!==v33[1]){
2335
- v1.sampleCoverage(v693,v694);
2336
- v33[0]=v693;
2337
- v33[1]=v694;
2338
- }
2339
- v695=v4.stencil_mask;
2340
- if(v695!==v5.stencil_mask){
2341
- v1.stencilMask(v695);
2342
- v5.stencil_mask=v695;
2343
- }
2344
- v696=v34[0];
2345
- v697=v34[1];
2346
- v698=v34[2];
2347
- if(v696!==v35[0]||v697!==v35[1]||v698!==v35[2]){
2348
- v1.stencilFunc(v696,v697,v698);
2349
- v35[0]=v696;
2350
- v35[1]=v697;
2351
- v35[2]=v698;
2352
- }
2353
- v699=v36[0];
2354
- v700=v36[1];
2355
- v701=v36[2];
2356
- v702=v36[3];
2357
- if(v699!==v37[0]||v700!==v37[1]||v701!==v37[2]||v702!==v37[3]){
2358
- v1.stencilOpSeparate(v699,v700,v701,v702);
2359
- v37[0]=v699;
2360
- v37[1]=v700;
2361
- v37[2]=v701;
2362
- v37[3]=v702;
2363
- }
2364
- v703=v38[0];
2365
- v704=v38[1];
2366
- v705=v38[2];
2367
- v706=v38[3];
2368
- if(v703!==v39[0]||v704!==v39[1]||v705!==v39[2]||v706!==v39[3]){
2369
- v1.stencilOpSeparate(v703,v704,v705,v706);
2370
- v39[0]=v703;
2371
- v39[1]=v704;
2372
- v39[2]=v705;
2373
- v39[3]=v706;
2374
- }
2375
- }
2376
- v1.blendColor(0,0,0,1);
2377
- v21[0]=0;
2378
- v21[1]=0;
2379
- v21[2]=0;
2380
- v21[3]=1;
2381
- if(g707){
2382
- v1.enable(3042);
2383
- }
2384
- else{
2385
- v1.disable(3042);
2386
- }
2387
- v5.blend_enable=g707;
2388
- v1.blendFuncSeparate(770,771,773,1);
2389
- v25[0]=770;
2390
- v25[1]=771;
2391
- v25[2]=773;
2392
- v25[3]=1;
2393
- if(g708){
2394
- v1.enable(2929);
2395
- }
2396
- else{
2397
- v1.disable(2929);
2398
- }
2399
- v5.depth_enable=g708;
2400
- if(g709){
2401
- v1.enable(3089);
2402
- }
2403
- else{
2404
- v1.disable(3089);
2405
- }
2406
- v5.scissor_enable=g709;
2407
- if(g710){
2408
- v1.enable(2960);
2409
- }
2410
- else{
2411
- v1.disable(2960);
2412
- }
2413
- v5.stencil_enable=g710;
2414
- v711=v5.profile;
2415
- if(v711){
2416
- v712=performance.now();
2417
- g52.count+=a1;
2418
- }
2419
- v1.useProgram(g109.program);
2420
- v713=v14.angle_instanced_arrays;
2421
- var v917;
2422
- v11.setVAO(null);
2423
- v1.uniform1i(g291.location,false);
2424
- v1.uniform1i(g305.location,g306.bind());
2425
- v917=v6.instances;
2426
- for(v714=0;
2427
- v714<a1;
2428
- ++v714){
2429
- v715=a0[v714];
2430
- var v716,v717,v718,v719,v720,v721,v722,v723,v724,v725,v726,v727,v728,v729,v730,v731,v732,v733,v734,v735,v736,v737,v738,v739,v740,v741,v742,v743,v744,v745,v746,v747,v748,v749,v750,v751,v752,v753,v754,v755,v756,v757,v758,v759,v760,v761,v762,v763,v764,v765,v766,v767,v768,v769,v770,v771,v772,v773,v774,v775,v776,v777,v778,v779,v780,v781,v782,v783,v784,v785,v786,v787,v788,v789,v790,v791,v792,v793,v794,v795,v796,v797,v798,v799,v800,v801,v802,v803,v804,v805,v806,v807,v808,v809,v810,v811,v812,v813,v814,v815,v816,v817,v818,v819,v820,v821,v822,v823,v824,v825,v826,v827,v828,v829,v830,v831,v832,v833,v834,v835,v836,v837,v838,v839,v840,v841,v842,v843,v844,v845,v846,v847,v848,v849,v850,v851,v852,v853,v854,v855,v856,v857,v858,v859,v860,v861,v862,v863,v864,v865,v866,v867,v868,v869,v870,v871,v872,v873,v874,v875,v876,v877,v878,v879,v880,v881,v882,v883,v884,v885,v886,v887,v888,v889,v890,v891,v892,v893,v894,v895,v896,v897,v898,v899,v900,v901,v902,v903,v904,v905,v906,v907,v908,v909,v910,v911,v912,v913,v914,v915,v916;
2431
- v716=v715["viewport"];
2432
- if(!(v716&&typeof v716==="object"))g18.commandRaise(g90,g19);
2433
- v717=v716.x|0;
2434
- v718=v716.y|0;
2435
- v719="width" in v716?v716.width|0:(v2.framebufferWidth-v717);
2436
- v720="height" in v716?v716.height|0:(v2.framebufferHeight-v718);
2437
- if(!(v719>=0&&v720>=0))g18.commandRaise(g90,g19);
2438
- v721=v2.viewportWidth;
2439
- v2.viewportWidth=v719;
2440
- v722=v2.viewportHeight;
2441
- v2.viewportHeight=v720;
2442
- v1.viewport(v717,v718,v719,v720);
2443
- v43[0]=v717;
2444
- v43[1]=v718;
2445
- v43[2]=v719;
2446
- v43[3]=v720;
2447
- v723=v715["viewport"];
2448
- if(!(v723&&typeof v723==="object"))g18.commandRaise(g100,g19);
2449
- v724=v723.x|0;
2450
- v725=v723.y|0;
2451
- v726="width" in v723?v723.width|0:(v2.framebufferWidth-v724);
2452
- v727="height" in v723?v723.height|0:(v2.framebufferHeight-v725);
2453
- if(!(v726>=0&&v727>=0))g18.commandRaise(g100,g19);
2454
- v1.scissor(v724,v725,v726,v727);
2455
- v41[0]=v724;
2456
- v41[1]=v725;
2457
- v41[2]=v726;
2458
- v41[3]=v727;
2459
- v728=g111.call(this,v2,v715,v714);
2460
- if(!(v728&&(typeof v728==="object"||typeof v728==="function")&&(v16(v728)||v8.getBuffer(v728)||v8.getBuffer(v728.buffer)||v16(v728.buffer)||("constant" in v728&&(typeof v728.constant==="number"||v17(v728.constant))))))g18.commandRaise(g113,g19);
2461
- v729=false;
2462
- v730=1;
2463
- v731=0;
2464
- v732=0;
2465
- v733=0;
2466
- v734=0;
2467
- v735=null;
2468
- v736=0;
2469
- v737=false;
2470
- v738=5126;
2471
- v739=0;
2472
- v740=0;
2473
- v741=0;
2474
- if(v16(v728)){
2475
- v729=true;
2476
- v735=v8.createStream(34962,v728);
2477
- v738=v735.dtype;
2478
- }
2479
- else{
2480
- v735=v8.getBuffer(v728);
2481
- if(v735){
2482
- v738=v735.dtype;
2483
- }
2484
- else if("constant" in v728){
2485
- v730=2;
2486
- if(typeof v728.constant === "number"){
2487
- v731=v728.constant;
2488
- v732=v733=v734=0;
2489
- }
2490
- else{
2491
- v731=v728.constant.length>0?v728.constant[0]:0;
2492
- v732=v728.constant.length>1?v728.constant[1]:0;
2493
- v733=v728.constant.length>2?v728.constant[2]:0;
2494
- v734=v728.constant.length>3?v728.constant[3]:0;
2495
- }
2496
- }
2497
- else{
2498
- if(v16(v728.buffer)){
2499
- v735=v8.createStream(34962,v728.buffer);
2500
- }
2501
- else{
2502
- v735=v8.getBuffer(v728.buffer);
2503
- }
2504
- v738="type" in v728?v49[v728.type]:v735.dtype;
2505
- v737=!!v728.normalized;
2506
- v736=v728.size|0;
2507
- v739=v728.offset|0;
2508
- v740=v728.stride|0;
2509
- v741=v728.divisor|0;
2510
- }
2511
- }
2512
- v742=g127.location;
2513
- v743=v10[v742];
2514
- if(v730===1){
2515
- if(!v743.buffer){
2516
- v1.enableVertexAttribArray(v742);
2517
- }
2518
- v744=v736||4;
2519
- if(v743.type!==v738||v743.size!==v744||v743.buffer!==v735||v743.normalized!==v737||v743.offset!==v739||v743.stride!==v740){
2520
- v1.bindBuffer(34962,v735.buffer);
2521
- v1.vertexAttribPointer(v742,v744,v738,v737,v740,v739);
2522
- v743.type=v738;
2523
- v743.size=v744;
2524
- v743.buffer=v735;
2525
- v743.normalized=v737;
2526
- v743.offset=v739;
2527
- v743.stride=v740;
2528
- }
2529
- if(v743.divisor!==v741){
2530
- v713.vertexAttribDivisorANGLE(v742,v741);
2531
- v743.divisor=v741;
2532
- }
2533
- }
2534
- else{
2535
- if(v743.buffer){
2536
- v1.disableVertexAttribArray(v742);
2537
- v743.buffer=null;
2538
- }
2539
- if(v743.x!==v731||v743.y!==v732||v743.z!==v733||v743.w!==v734){
2540
- v1.vertexAttrib4f(v742,v731,v732,v733,v734);
2541
- v743.x=v731;
2542
- v743.y=v732;
2543
- v743.z=v733;
2544
- v743.w=v734;
2545
- }
2546
- }
2547
- v745=g131.call(this,v2,v715,v714);
2548
- if(!(v745&&(typeof v745==="object"||typeof v745==="function")&&(v16(v745)||v8.getBuffer(v745)||v8.getBuffer(v745.buffer)||v16(v745.buffer)||("constant" in v745&&(typeof v745.constant==="number"||v17(v745.constant))))))g18.commandRaise(g133,g19);
2549
- v746=false;
2550
- v747=1;
2551
- v748=0;
2552
- v749=0;
2553
- v750=0;
2554
- v751=0;
2555
- v752=null;
2556
- v753=0;
2557
- v754=false;
2558
- v755=5126;
2559
- v756=0;
2560
- v757=0;
2561
- v758=0;
2562
- if(v16(v745)){
2563
- v746=true;
2564
- v752=v8.createStream(34962,v745);
2565
- v755=v752.dtype;
2566
- }
2567
- else{
2568
- v752=v8.getBuffer(v745);
2569
- if(v752){
2570
- v755=v752.dtype;
2571
- }
2572
- else if("constant" in v745){
2573
- v747=2;
2574
- if(typeof v745.constant === "number"){
2575
- v748=v745.constant;
2576
- v749=v750=v751=0;
2577
- }
2578
- else{
2579
- v748=v745.constant.length>0?v745.constant[0]:0;
2580
- v749=v745.constant.length>1?v745.constant[1]:0;
2581
- v750=v745.constant.length>2?v745.constant[2]:0;
2582
- v751=v745.constant.length>3?v745.constant[3]:0;
2583
- }
2584
- }
2585
- else{
2586
- if(v16(v745.buffer)){
2587
- v752=v8.createStream(34962,v745.buffer);
2588
- }
2589
- else{
2590
- v752=v8.getBuffer(v745.buffer);
2591
- }
2592
- v755="type" in v745?v49[v745.type]:v752.dtype;
2593
- v754=!!v745.normalized;
2594
- v753=v745.size|0;
2595
- v756=v745.offset|0;
2596
- v757=v745.stride|0;
2597
- v758=v745.divisor|0;
2598
- }
2599
- }
2600
- v759=g147.location;
2601
- v760=v10[v759];
2602
- if(v747===1){
2603
- if(!v760.buffer){
2604
- v1.enableVertexAttribArray(v759);
2605
- }
2606
- v761=v753||1;
2607
- if(v760.type!==v755||v760.size!==v761||v760.buffer!==v752||v760.normalized!==v754||v760.offset!==v756||v760.stride!==v757){
2608
- v1.bindBuffer(34962,v752.buffer);
2609
- v1.vertexAttribPointer(v759,v761,v755,v754,v757,v756);
2610
- v760.type=v755;
2611
- v760.size=v761;
2612
- v760.buffer=v752;
2613
- v760.normalized=v754;
2614
- v760.offset=v756;
2615
- v760.stride=v757;
2616
- }
2617
- if(v760.divisor!==v758){
2618
- v713.vertexAttribDivisorANGLE(v759,v758);
2619
- v760.divisor=v758;
2620
- }
2621
- }
2622
- else{
2623
- if(v760.buffer){
2624
- v1.disableVertexAttribArray(v759);
2625
- v760.buffer=null;
2626
- }
2627
- if(v760.x!==v748||v760.y!==v749||v760.z!==v750||v760.w!==v751){
2628
- v1.vertexAttrib4f(v759,v748,v749,v750,v751);
2629
- v760.x=v748;
2630
- v760.y=v749;
2631
- v760.z=v750;
2632
- v760.w=v751;
2633
- }
2634
- }
2635
- v762=g151.call(this,v2,v715,v714);
2636
- if(!(v762&&(typeof v762==="object"||typeof v762==="function")&&(v16(v762)||v8.getBuffer(v762)||v8.getBuffer(v762.buffer)||v16(v762.buffer)||("constant" in v762&&(typeof v762.constant==="number"||v17(v762.constant))))))g18.commandRaise(g153,g19);
2637
- v763=false;
2638
- v764=1;
2639
- v765=0;
2640
- v766=0;
2641
- v767=0;
2642
- v768=0;
2643
- v769=null;
2644
- v770=0;
2645
- v771=false;
2646
- v772=5126;
2647
- v773=0;
2648
- v774=0;
2649
- v775=0;
2650
- if(v16(v762)){
2651
- v763=true;
2652
- v769=v8.createStream(34962,v762);
2653
- v772=v769.dtype;
2654
- }
2655
- else{
2656
- v769=v8.getBuffer(v762);
2657
- if(v769){
2658
- v772=v769.dtype;
2659
- }
2660
- else if("constant" in v762){
2661
- v764=2;
2662
- if(typeof v762.constant === "number"){
2663
- v765=v762.constant;
2664
- v766=v767=v768=0;
2665
- }
2666
- else{
2667
- v765=v762.constant.length>0?v762.constant[0]:0;
2668
- v766=v762.constant.length>1?v762.constant[1]:0;
2669
- v767=v762.constant.length>2?v762.constant[2]:0;
2670
- v768=v762.constant.length>3?v762.constant[3]:0;
2671
- }
2672
- }
2673
- else{
2674
- if(v16(v762.buffer)){
2675
- v769=v8.createStream(34962,v762.buffer);
2676
- }
2677
- else{
2678
- v769=v8.getBuffer(v762.buffer);
2679
- }
2680
- v772="type" in v762?v49[v762.type]:v769.dtype;
2681
- v771=!!v762.normalized;
2682
- v770=v762.size|0;
2683
- v773=v762.offset|0;
2684
- v774=v762.stride|0;
2685
- v775=v762.divisor|0;
2686
- }
2687
- }
2688
- v776=g167.location;
2689
- v777=v10[v776];
2690
- if(v764===1){
2691
- if(!v777.buffer){
2692
- v1.enableVertexAttribArray(v776);
2693
- }
2694
- v778=v770||4;
2695
- if(v777.type!==v772||v777.size!==v778||v777.buffer!==v769||v777.normalized!==v771||v777.offset!==v773||v777.stride!==v774){
2696
- v1.bindBuffer(34962,v769.buffer);
2697
- v1.vertexAttribPointer(v776,v778,v772,v771,v774,v773);
2698
- v777.type=v772;
2699
- v777.size=v778;
2700
- v777.buffer=v769;
2701
- v777.normalized=v771;
2702
- v777.offset=v773;
2703
- v777.stride=v774;
2704
- }
2705
- if(v777.divisor!==v775){
2706
- v713.vertexAttribDivisorANGLE(v776,v775);
2707
- v777.divisor=v775;
2708
- }
2709
- }
2710
- else{
2711
- if(v777.buffer){
2712
- v1.disableVertexAttribArray(v776);
2713
- v777.buffer=null;
2714
- }
2715
- if(v777.x!==v765||v777.y!==v766||v777.z!==v767||v777.w!==v768){
2716
- v1.vertexAttrib4f(v776,v765,v766,v767,v768);
2717
- v777.x=v765;
2718
- v777.y=v766;
2719
- v777.z=v767;
2720
- v777.w=v768;
2721
- }
2722
- }
2723
- v779=g171.call(this,v2,v715,v714);
2724
- if(!(v779&&(typeof v779==="object"||typeof v779==="function")&&(v16(v779)||v8.getBuffer(v779)||v8.getBuffer(v779.buffer)||v16(v779.buffer)||("constant" in v779&&(typeof v779.constant==="number"||v17(v779.constant))))))g18.commandRaise(g173,g19);
2725
- v780=false;
2726
- v781=1;
2727
- v782=0;
2728
- v783=0;
2729
- v784=0;
2730
- v785=0;
2731
- v786=null;
2732
- v787=0;
2733
- v788=false;
2734
- v789=5126;
2735
- v790=0;
2736
- v791=0;
2737
- v792=0;
2738
- if(v16(v779)){
2739
- v780=true;
2740
- v786=v8.createStream(34962,v779);
2741
- v789=v786.dtype;
2742
- }
2743
- else{
2744
- v786=v8.getBuffer(v779);
2745
- if(v786){
2746
- v789=v786.dtype;
2747
- }
2748
- else if("constant" in v779){
2749
- v781=2;
2750
- if(typeof v779.constant === "number"){
2751
- v782=v779.constant;
2752
- v783=v784=v785=0;
2753
- }
2754
- else{
2755
- v782=v779.constant.length>0?v779.constant[0]:0;
2756
- v783=v779.constant.length>1?v779.constant[1]:0;
2757
- v784=v779.constant.length>2?v779.constant[2]:0;
2758
- v785=v779.constant.length>3?v779.constant[3]:0;
2759
- }
2760
- }
2761
- else{
2762
- if(v16(v779.buffer)){
2763
- v786=v8.createStream(34962,v779.buffer);
2764
- }
2765
- else{
2766
- v786=v8.getBuffer(v779.buffer);
2767
- }
2768
- v789="type" in v779?v49[v779.type]:v786.dtype;
2769
- v788=!!v779.normalized;
2770
- v787=v779.size|0;
2771
- v790=v779.offset|0;
2772
- v791=v779.stride|0;
2773
- v792=v779.divisor|0;
2774
- }
2775
- }
2776
- v793=g187.location;
2777
- v794=v10[v793];
2778
- if(v781===1){
2779
- if(!v794.buffer){
2780
- v1.enableVertexAttribArray(v793);
2781
- }
2782
- v795=v787||1;
2783
- if(v794.type!==v789||v794.size!==v795||v794.buffer!==v786||v794.normalized!==v788||v794.offset!==v790||v794.stride!==v791){
2784
- v1.bindBuffer(34962,v786.buffer);
2785
- v1.vertexAttribPointer(v793,v795,v789,v788,v791,v790);
2786
- v794.type=v789;
2787
- v794.size=v795;
2788
- v794.buffer=v786;
2789
- v794.normalized=v788;
2790
- v794.offset=v790;
2791
- v794.stride=v791;
2792
- }
2793
- if(v794.divisor!==v792){
2794
- v713.vertexAttribDivisorANGLE(v793,v792);
2795
- v794.divisor=v792;
2796
- }
2797
- }
2798
- else{
2799
- if(v794.buffer){
2800
- v1.disableVertexAttribArray(v793);
2801
- v794.buffer=null;
2802
- }
2803
- if(v794.x!==v782||v794.y!==v783||v794.z!==v784||v794.w!==v785){
2804
- v1.vertexAttrib4f(v793,v782,v783,v784,v785);
2805
- v794.x=v782;
2806
- v794.y=v783;
2807
- v794.z=v784;
2808
- v794.w=v785;
2809
- }
2810
- }
2811
- v796=g191.call(this,v2,v715,v714);
2812
- if(!(v796&&(typeof v796==="object"||typeof v796==="function")&&(v16(v796)||v8.getBuffer(v796)||v8.getBuffer(v796.buffer)||v16(v796.buffer)||("constant" in v796&&(typeof v796.constant==="number"||v17(v796.constant))))))g18.commandRaise(g193,g19);
2813
- v797=false;
2814
- v798=1;
2815
- v799=0;
2816
- v800=0;
2817
- v801=0;
2818
- v802=0;
2819
- v803=null;
2820
- v804=0;
2821
- v805=false;
2822
- v806=5126;
2823
- v807=0;
2824
- v808=0;
2825
- v809=0;
2826
- if(v16(v796)){
2827
- v797=true;
2828
- v803=v8.createStream(34962,v796);
2829
- v806=v803.dtype;
2830
- }
2831
- else{
2832
- v803=v8.getBuffer(v796);
2833
- if(v803){
2834
- v806=v803.dtype;
2835
- }
2836
- else if("constant" in v796){
2837
- v798=2;
2838
- if(typeof v796.constant === "number"){
2839
- v799=v796.constant;
2840
- v800=v801=v802=0;
2841
- }
2842
- else{
2843
- v799=v796.constant.length>0?v796.constant[0]:0;
2844
- v800=v796.constant.length>1?v796.constant[1]:0;
2845
- v801=v796.constant.length>2?v796.constant[2]:0;
2846
- v802=v796.constant.length>3?v796.constant[3]:0;
2847
- }
2848
- }
2849
- else{
2850
- if(v16(v796.buffer)){
2851
- v803=v8.createStream(34962,v796.buffer);
2852
- }
2853
- else{
2854
- v803=v8.getBuffer(v796.buffer);
2855
- }
2856
- v806="type" in v796?v49[v796.type]:v803.dtype;
2857
- v805=!!v796.normalized;
2858
- v804=v796.size|0;
2859
- v807=v796.offset|0;
2860
- v808=v796.stride|0;
2861
- v809=v796.divisor|0;
2862
- }
2863
- }
2864
- v810=g207.location;
2865
- v811=v10[v810];
2866
- if(v798===1){
2867
- if(!v811.buffer){
2868
- v1.enableVertexAttribArray(v810);
2869
- }
2870
- v812=v804||1;
2871
- if(v811.type!==v806||v811.size!==v812||v811.buffer!==v803||v811.normalized!==v805||v811.offset!==v807||v811.stride!==v808){
2872
- v1.bindBuffer(34962,v803.buffer);
2873
- v1.vertexAttribPointer(v810,v812,v806,v805,v808,v807);
2874
- v811.type=v806;
2875
- v811.size=v812;
2876
- v811.buffer=v803;
2877
- v811.normalized=v805;
2878
- v811.offset=v807;
2879
- v811.stride=v808;
2880
- }
2881
- if(v811.divisor!==v809){
2882
- v713.vertexAttribDivisorANGLE(v810,v809);
2883
- v811.divisor=v809;
2884
- }
2885
- }
2886
- else{
2887
- if(v811.buffer){
2888
- v1.disableVertexAttribArray(v810);
2889
- v811.buffer=null;
2890
- }
2891
- if(v811.x!==v799||v811.y!==v800||v811.z!==v801||v811.w!==v802){
2892
- v1.vertexAttrib4f(v810,v799,v800,v801,v802);
2893
- v811.x=v799;
2894
- v811.y=v800;
2895
- v811.z=v801;
2896
- v811.w=v802;
2897
- }
2898
- }
2899
- v813=g211.call(this,v2,v715,v714);
2900
- if(!(v813&&(typeof v813==="object"||typeof v813==="function")&&(v16(v813)||v8.getBuffer(v813)||v8.getBuffer(v813.buffer)||v16(v813.buffer)||("constant" in v813&&(typeof v813.constant==="number"||v17(v813.constant))))))g18.commandRaise(g213,g19);
2901
- v814=false;
2902
- v815=1;
2903
- v816=0;
2904
- v817=0;
2905
- v818=0;
2906
- v819=0;
2907
- v820=null;
2908
- v821=0;
2909
- v822=false;
2910
- v823=5126;
2911
- v824=0;
2912
- v825=0;
2913
- v826=0;
2914
- if(v16(v813)){
2915
- v814=true;
2916
- v820=v8.createStream(34962,v813);
2917
- v823=v820.dtype;
2918
- }
2919
- else{
2920
- v820=v8.getBuffer(v813);
2921
- if(v820){
2922
- v823=v820.dtype;
2923
- }
2924
- else if("constant" in v813){
2925
- v815=2;
2926
- if(typeof v813.constant === "number"){
2927
- v816=v813.constant;
2928
- v817=v818=v819=0;
2929
- }
2930
- else{
2931
- v816=v813.constant.length>0?v813.constant[0]:0;
2932
- v817=v813.constant.length>1?v813.constant[1]:0;
2933
- v818=v813.constant.length>2?v813.constant[2]:0;
2934
- v819=v813.constant.length>3?v813.constant[3]:0;
2935
- }
2936
- }
2937
- else{
2938
- if(v16(v813.buffer)){
2939
- v820=v8.createStream(34962,v813.buffer);
2940
- }
2941
- else{
2942
- v820=v8.getBuffer(v813.buffer);
2943
- }
2944
- v823="type" in v813?v49[v813.type]:v820.dtype;
2945
- v822=!!v813.normalized;
2946
- v821=v813.size|0;
2947
- v824=v813.offset|0;
2948
- v825=v813.stride|0;
2949
- v826=v813.divisor|0;
2950
- }
2951
- }
2952
- v827=g227.location;
2953
- v828=v10[v827];
2954
- if(v815===1){
2955
- if(!v828.buffer){
2956
- v1.enableVertexAttribArray(v827);
2957
- }
2958
- v829=v821||1;
2959
- if(v828.type!==v823||v828.size!==v829||v828.buffer!==v820||v828.normalized!==v822||v828.offset!==v824||v828.stride!==v825){
2960
- v1.bindBuffer(34962,v820.buffer);
2961
- v1.vertexAttribPointer(v827,v829,v823,v822,v825,v824);
2962
- v828.type=v823;
2963
- v828.size=v829;
2964
- v828.buffer=v820;
2965
- v828.normalized=v822;
2966
- v828.offset=v824;
2967
- v828.stride=v825;
2968
- }
2969
- if(v828.divisor!==v826){
2970
- v713.vertexAttribDivisorANGLE(v827,v826);
2971
- v828.divisor=v826;
2972
- }
2973
- }
2974
- else{
2975
- if(v828.buffer){
2976
- v1.disableVertexAttribArray(v827);
2977
- v828.buffer=null;
2978
- }
2979
- if(v828.x!==v816||v828.y!==v817||v828.z!==v818||v828.w!==v819){
2980
- v1.vertexAttrib4f(v827,v816,v817,v818,v819);
2981
- v828.x=v816;
2982
- v828.y=v817;
2983
- v828.z=v818;
2984
- v828.w=v819;
2985
- }
2986
- }
2987
- v830=g231.call(this,v2,v715,v714);
2988
- if(!(v830&&(typeof v830==="object"||typeof v830==="function")&&(v16(v830)||v8.getBuffer(v830)||v8.getBuffer(v830.buffer)||v16(v830.buffer)||("constant" in v830&&(typeof v830.constant==="number"||v17(v830.constant))))))g18.commandRaise(g233,g19);
2989
- v831=false;
2990
- v832=1;
2991
- v833=0;
2992
- v834=0;
2993
- v835=0;
2994
- v836=0;
2995
- v837=null;
2996
- v838=0;
2997
- v839=false;
2998
- v840=5126;
2999
- v841=0;
3000
- v842=0;
3001
- v843=0;
3002
- if(v16(v830)){
3003
- v831=true;
3004
- v837=v8.createStream(34962,v830);
3005
- v840=v837.dtype;
3006
- }
3007
- else{
3008
- v837=v8.getBuffer(v830);
3009
- if(v837){
3010
- v840=v837.dtype;
3011
- }
3012
- else if("constant" in v830){
3013
- v832=2;
3014
- if(typeof v830.constant === "number"){
3015
- v833=v830.constant;
3016
- v834=v835=v836=0;
3017
- }
3018
- else{
3019
- v833=v830.constant.length>0?v830.constant[0]:0;
3020
- v834=v830.constant.length>1?v830.constant[1]:0;
3021
- v835=v830.constant.length>2?v830.constant[2]:0;
3022
- v836=v830.constant.length>3?v830.constant[3]:0;
3023
- }
3024
- }
3025
- else{
3026
- if(v16(v830.buffer)){
3027
- v837=v8.createStream(34962,v830.buffer);
3028
- }
3029
- else{
3030
- v837=v8.getBuffer(v830.buffer);
3031
- }
3032
- v840="type" in v830?v49[v830.type]:v837.dtype;
3033
- v839=!!v830.normalized;
3034
- v838=v830.size|0;
3035
- v841=v830.offset|0;
3036
- v842=v830.stride|0;
3037
- v843=v830.divisor|0;
3038
- }
3039
- }
3040
- v844=g247.location;
3041
- v845=v10[v844];
3042
- if(v832===1){
3043
- if(!v845.buffer){
3044
- v1.enableVertexAttribArray(v844);
3045
- }
3046
- v846=v838||1;
3047
- if(v845.type!==v840||v845.size!==v846||v845.buffer!==v837||v845.normalized!==v839||v845.offset!==v841||v845.stride!==v842){
3048
- v1.bindBuffer(34962,v837.buffer);
3049
- v1.vertexAttribPointer(v844,v846,v840,v839,v842,v841);
3050
- v845.type=v840;
3051
- v845.size=v846;
3052
- v845.buffer=v837;
3053
- v845.normalized=v839;
3054
- v845.offset=v841;
3055
- v845.stride=v842;
3056
- }
3057
- if(v845.divisor!==v843){
3058
- v713.vertexAttribDivisorANGLE(v844,v843);
3059
- v845.divisor=v843;
3060
- }
3061
- }
3062
- else{
3063
- if(v845.buffer){
3064
- v1.disableVertexAttribArray(v844);
3065
- v845.buffer=null;
3066
- }
3067
- if(v845.x!==v833||v845.y!==v834||v845.z!==v835||v845.w!==v836){
3068
- v1.vertexAttrib4f(v844,v833,v834,v835,v836);
3069
- v845.x=v833;
3070
- v845.y=v834;
3071
- v845.z=v835;
3072
- v845.w=v836;
3073
- }
3074
- }
3075
- v847=g251.call(this,v2,v715,v714);
3076
- if(!(v847&&(typeof v847==="object"||typeof v847==="function")&&(v16(v847)||v8.getBuffer(v847)||v8.getBuffer(v847.buffer)||v16(v847.buffer)||("constant" in v847&&(typeof v847.constant==="number"||v17(v847.constant))))))g18.commandRaise(g253,g19);
3077
- v848=false;
3078
- v849=1;
3079
- v850=0;
3080
- v851=0;
3081
- v852=0;
3082
- v853=0;
3083
- v854=null;
3084
- v855=0;
3085
- v856=false;
3086
- v857=5126;
3087
- v858=0;
3088
- v859=0;
3089
- v860=0;
3090
- if(v16(v847)){
3091
- v848=true;
3092
- v854=v8.createStream(34962,v847);
3093
- v857=v854.dtype;
3094
- }
3095
- else{
3096
- v854=v8.getBuffer(v847);
3097
- if(v854){
3098
- v857=v854.dtype;
3099
- }
3100
- else if("constant" in v847){
3101
- v849=2;
3102
- if(typeof v847.constant === "number"){
3103
- v850=v847.constant;
3104
- v851=v852=v853=0;
3105
- }
3106
- else{
3107
- v850=v847.constant.length>0?v847.constant[0]:0;
3108
- v851=v847.constant.length>1?v847.constant[1]:0;
3109
- v852=v847.constant.length>2?v847.constant[2]:0;
3110
- v853=v847.constant.length>3?v847.constant[3]:0;
3111
- }
3112
- }
3113
- else{
3114
- if(v16(v847.buffer)){
3115
- v854=v8.createStream(34962,v847.buffer);
3116
- }
3117
- else{
3118
- v854=v8.getBuffer(v847.buffer);
3119
- }
3120
- v857="type" in v847?v49[v847.type]:v854.dtype;
3121
- v856=!!v847.normalized;
3122
- v855=v847.size|0;
3123
- v858=v847.offset|0;
3124
- v859=v847.stride|0;
3125
- v860=v847.divisor|0;
3126
- }
3127
- }
3128
- v861=g267.location;
3129
- v862=v10[v861];
3130
- if(v849===1){
3131
- if(!v862.buffer){
3132
- v1.enableVertexAttribArray(v861);
3133
- }
3134
- v863=v855||1;
3135
- if(v862.type!==v857||v862.size!==v863||v862.buffer!==v854||v862.normalized!==v856||v862.offset!==v858||v862.stride!==v859){
3136
- v1.bindBuffer(34962,v854.buffer);
3137
- v1.vertexAttribPointer(v861,v863,v857,v856,v859,v858);
3138
- v862.type=v857;
3139
- v862.size=v863;
3140
- v862.buffer=v854;
3141
- v862.normalized=v856;
3142
- v862.offset=v858;
3143
- v862.stride=v859;
3144
- }
3145
- if(v862.divisor!==v860){
3146
- v713.vertexAttribDivisorANGLE(v861,v860);
3147
- v862.divisor=v860;
3148
- }
3149
- }
3150
- else{
3151
- if(v862.buffer){
3152
- v1.disableVertexAttribArray(v861);
3153
- v862.buffer=null;
3154
- }
3155
- if(v862.x!==v850||v862.y!==v851||v862.z!==v852||v862.w!==v853){
3156
- v1.vertexAttrib4f(v861,v850,v851,v852,v853);
3157
- v862.x=v850;
3158
- v862.y=v851;
3159
- v862.z=v852;
3160
- v862.w=v853;
3161
- }
3162
- }
3163
- v864=g271.call(this,v2,v715,v714);
3164
- if(!(v864&&(typeof v864==="object"||typeof v864==="function")&&(v16(v864)||v8.getBuffer(v864)||v8.getBuffer(v864.buffer)||v16(v864.buffer)||("constant" in v864&&(typeof v864.constant==="number"||v17(v864.constant))))))g18.commandRaise(g273,g19);
3165
- v865=false;
3166
- v866=1;
3167
- v867=0;
3168
- v868=0;
3169
- v869=0;
3170
- v870=0;
3171
- v871=null;
3172
- v872=0;
3173
- v873=false;
3174
- v874=5126;
3175
- v875=0;
3176
- v876=0;
3177
- v877=0;
3178
- if(v16(v864)){
3179
- v865=true;
3180
- v871=v8.createStream(34962,v864);
3181
- v874=v871.dtype;
3182
- }
3183
- else{
3184
- v871=v8.getBuffer(v864);
3185
- if(v871){
3186
- v874=v871.dtype;
3187
- }
3188
- else if("constant" in v864){
3189
- v866=2;
3190
- if(typeof v864.constant === "number"){
3191
- v867=v864.constant;
3192
- v868=v869=v870=0;
3193
- }
3194
- else{
3195
- v867=v864.constant.length>0?v864.constant[0]:0;
3196
- v868=v864.constant.length>1?v864.constant[1]:0;
3197
- v869=v864.constant.length>2?v864.constant[2]:0;
3198
- v870=v864.constant.length>3?v864.constant[3]:0;
3199
- }
3200
- }
3201
- else{
3202
- if(v16(v864.buffer)){
3203
- v871=v8.createStream(34962,v864.buffer);
3204
- }
3205
- else{
3206
- v871=v8.getBuffer(v864.buffer);
3207
- }
3208
- v874="type" in v864?v49[v864.type]:v871.dtype;
3209
- v873=!!v864.normalized;
3210
- v872=v864.size|0;
3211
- v875=v864.offset|0;
3212
- v876=v864.stride|0;
3213
- v877=v864.divisor|0;
3214
- }
3215
- }
3216
- v878=g287.location;
3217
- v879=v10[v878];
3218
- if(v866===1){
3219
- if(!v879.buffer){
3220
- v1.enableVertexAttribArray(v878);
3221
- }
3222
- v880=v872||1;
3223
- if(v879.type!==v874||v879.size!==v880||v879.buffer!==v871||v879.normalized!==v873||v879.offset!==v875||v879.stride!==v876){
3224
- v1.bindBuffer(34962,v871.buffer);
3225
- v1.vertexAttribPointer(v878,v880,v874,v873,v876,v875);
3226
- v879.type=v874;
3227
- v879.size=v880;
3228
- v879.buffer=v871;
3229
- v879.normalized=v873;
3230
- v879.offset=v875;
3231
- v879.stride=v876;
3232
- }
3233
- if(v879.divisor!==v877){
3234
- v713.vertexAttribDivisorANGLE(v878,v877);
3235
- v879.divisor=v877;
3236
- }
3237
- }
3238
- else{
3239
- if(v879.buffer){
3240
- v1.disableVertexAttribArray(v878);
3241
- v879.buffer=null;
3242
- }
3243
- if(v879.x!==v867||v879.y!==v868||v879.z!==v869||v879.w!==v870){
3244
- v1.vertexAttrib4f(v878,v867,v868,v869,v870);
3245
- v879.x=v867;
3246
- v879.y=v868;
3247
- v879.z=v869;
3248
- v879.w=v870;
3249
- }
3250
- }
3251
- v881=v715["markerTexture"];
3252
- if(v881&&v881._reglType==="framebuffer"){
3253
- v881=v881.color[0];
3254
- }
3255
- if(!(typeof v881==="function"&&v881._reglType==="texture2d"))g18.commandRaise(g294,g19);
3256
- v882=v881._texture;
3257
- v1.uniform1i(g292.location,v882.bind());
3258
- v883=v715["opacity"];
3259
- if(!(typeof v883==="number"))g18.commandRaise(g298,g19);
3260
- if(!v714||v884!==v883){
3261
- v884=v883;
3262
- v1.uniform1f(g296.location,v883);
3263
- }
3264
- v885=g300.call(this,v2,v715,v714);
3265
- if(!(v17(v885)&&v885.length===2))g18.commandRaise(g302,g19);
3266
- v886=v885[0];
3267
- v888=v885[1];
3268
- if(!v714||v887!==v886||v889!==v888){
3269
- v887=v886;
3270
- v889=v888;
3271
- v1.uniform2f(g299.location,v886,v888);
3272
- }
3273
- v890=v2["pixelRatio"];
3274
- if(!(typeof v890==="number"))g18.commandRaise(g309,g19);
3275
- if(!v714||v891!==v890){
3276
- v891=v890;
3277
- v1.uniform1f(g307.location,v890);
3278
- }
3279
- v892=v715["scale"];
3280
- if(!(v17(v892)&&v892.length===2))g18.commandRaise(g312,g19);
3281
- v893=v892[0];
3282
- v895=v892[1];
3283
- if(!v714||v894!==v893||v896!==v895){
3284
- v894=v893;
3285
- v896=v895;
3286
- v1.uniform2f(g310.location,v893,v895);
3287
- }
3288
- v897=v715["scaleFract"];
3289
- if(!(v17(v897)&&v897.length===2))g18.commandRaise(g317,g19);
3290
- v898=v897[0];
3291
- v900=v897[1];
3292
- if(!v714||v899!==v898||v901!==v900){
3293
- v899=v898;
3294
- v901=v900;
3295
- v1.uniform2f(g315.location,v898,v900);
3296
- }
3297
- v902=v715["translate"];
3298
- if(!(v17(v902)&&v902.length===2))g18.commandRaise(g322,g19);
3299
- v903=v902[0];
3300
- v905=v902[1];
3301
- if(!v714||v904!==v903||v906!==v905){
3302
- v904=v903;
3303
- v906=v905;
3304
- v1.uniform2f(g320.location,v903,v905);
3305
- }
3306
- v907=v715["translateFract"];
3307
- if(!(v17(v907)&&v907.length===2))g18.commandRaise(g327,g19);
3308
- v908=v907[0];
3309
- v910=v907[1];
3310
- if(!v714||v909!==v908||v911!==v910){
3311
- v909=v908;
3312
- v911=v910;
3313
- v1.uniform2f(g325.location,v908,v910);
3314
- }
3315
- v912=v715["elements"];
3316
- v913=null;
3317
- v914=v16(v912);
3318
- if(v914){
3319
- v913=v7.createStream(v912);
3320
- }
3321
- else{
3322
- v913=v7.getElements(v912);
3323
- if(!(!v912||v913))g18.commandRaise(g333,g19);
3324
- }
3325
- if(v913)v1.bindBuffer(34963,v913.buffer.buffer);
3326
- v915=v715["offset"];
3327
- if(!(v915>=0))g18.commandRaise(g335,g19);
3328
- v916=v715["count"];
3329
- if(!(typeof v916==="number"&&v916>=0&&v916===(v916|0)))g18.commandRaise(g337,g19);
3330
- if(v916){
3331
- if(v917>0){
3332
- if(v913){
3333
- v713.drawElementsInstancedANGLE(0,v916,v913.type,v915<<((v913.type-5121)>>1),v917);
3334
- }
3335
- else{
3336
- v713.drawArraysInstancedANGLE(0,v915,v916,v917);
3337
- }
3338
- }
3339
- else if(v917<0){
3340
- if(v913){
3341
- v1.drawElements(0,v916,v913.type,v915<<((v913.type-5121)>>1));
3342
- }
3343
- else{
3344
- v1.drawArrays(0,v915,v916);
3345
- }
3346
- }
3347
- v2.viewportWidth=v721;
3348
- v2.viewportHeight=v722;
3349
- if(v729){
3350
- v8.destroyStream(v735);
3351
- }
3352
- if(v746){
3353
- v8.destroyStream(v752);
3354
- }
3355
- if(v763){
3356
- v8.destroyStream(v769);
3357
- }
3358
- if(v780){
3359
- v8.destroyStream(v786);
3360
- }
3361
- if(v797){
3362
- v8.destroyStream(v803);
3363
- }
3364
- if(v814){
3365
- v8.destroyStream(v820);
3366
- }
3367
- if(v831){
3368
- v8.destroyStream(v837);
3369
- }
3370
- if(v848){
3371
- v8.destroyStream(v854);
3372
- }
3373
- if(v865){
3374
- v8.destroyStream(v871);
3375
- }
3376
- v882.unbind();
3377
- if(v914){
3378
- v7.destroyStream(v913);
3379
- }
3380
- }
3381
- }
3382
- g306.unbind();
3383
- v5.dirty=true;
3384
- v11.setVAO(null);
3385
- if(v711){
3386
- g52.cpuTime+=performance.now()-v712;
3387
- }
3388
- }
3389
- ,}
3390
-
3391
- }