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,2488 +0,0 @@
1
- module.exports = function anonymous(g0,g18,g19,g52,g93,g100,g101,g103,g105,g110,g111,g114,g117,g131,g136,g150,g155,g169,g174,g188,g193,g207,g211,g212,g215,g218,g220,g221,g223,g225,g227,g228,g230,g231,g233,g236,g238,g241,g243,g244,g246,g249,g251,g254,g255,g257,g275,g277,g279,g281,g283,g285,g287,g289,g291,g293,g295,g308,g310,g314,g316,g320,g322,g324,g327,g330,g333,g336,g339,g342,g345,g348,g351,g354,g357,g360,g363,g365,g378,g405,g432,g459,g486,g513,g526,g528,g564,g565,g566
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,v53,v54,v55,v56,v57;
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
- v53={
69
- }
70
- ;
71
- v53.stride=8;
72
- v53.offset=8;
73
- v53.divisor=1;
74
- v54={
75
- }
76
- ;
77
- v54.stride=8;
78
- v54.offset=16;
79
- v54.divisor=1;
80
- v55={
81
- }
82
- ;
83
- v55.stride=8;
84
- v55.offset=8;
85
- v55.divisor=1;
86
- v56={
87
- }
88
- ;
89
- v56.stride=8;
90
- v56.offset=16;
91
- v56.divisor=1;
92
- v57={
93
- }
94
- ;
95
- v57.stride=4;
96
- v57.offset=0;
97
- v57.divisor=1;
98
- return {
99
- "draw":function(a0){
100
- var v58,v59,v92,v94,v95,v96,v97,v98,v99,v102,v104,v106,v107,v108,v109,v112,v113,v115,v116,v118,v119,v120,v121,v122,v123,v124,v125,v126,v127,v128,v129,v130,v132,v133,v134,v135,v137,v138,v139,v140,v141,v142,v143,v144,v145,v146,v147,v148,v149,v151,v152,v153,v154,v156,v157,v158,v159,v160,v161,v162,v163,v164,v165,v166,v167,v168,v170,v171,v172,v173,v175,v176,v177,v178,v179,v180,v181,v182,v183,v184,v185,v186,v187,v189,v190,v191,v192,v194,v195,v196,v197,v198,v199,v200,v201,v202,v203,v204,v205,v206,v208,v209,v210,v213,v214,v216,v217,v219,v222,v224,v226,v229,v232,v234,v235,v237,v239,v240,v242,v245,v247,v248,v250,v252,v253,v256,v258,v259,v260,v261,v262,v263;
101
- v58=v14.angle_instanced_arrays;
102
- v59=v13.next;
103
- if(v59!==v13.cur){
104
- if(v59){
105
- v1.bindFramebuffer(36160,v59.framebuffer);
106
- }
107
- else{
108
- v1.bindFramebuffer(36160,null);
109
- }
110
- v13.cur=v59;
111
- }
112
- if(v5.dirty){
113
- var 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,v89,v90,v91;
114
- v60=v4.dither;
115
- if(v60!==v5.dither){
116
- if(v60){
117
- v1.enable(3024);
118
- }
119
- else{
120
- v1.disable(3024);
121
- }
122
- v5.dither=v60;
123
- }
124
- v61=v4.depth_func;
125
- if(v61!==v5.depth_func){
126
- v1.depthFunc(v61);
127
- v5.depth_func=v61;
128
- }
129
- v62=v26[0];
130
- v63=v26[1];
131
- if(v62!==v27[0]||v63!==v27[1]){
132
- v1.depthRange(v62,v63);
133
- v27[0]=v62;
134
- v27[1]=v63;
135
- }
136
- v64=v4.depth_mask;
137
- if(v64!==v5.depth_mask){
138
- v1.depthMask(v64);
139
- v5.depth_mask=v64;
140
- }
141
- v65=v28[0];
142
- v66=v28[1];
143
- v67=v28[2];
144
- v68=v28[3];
145
- if(v65!==v29[0]||v66!==v29[1]||v67!==v29[2]||v68!==v29[3]){
146
- v1.colorMask(v65,v66,v67,v68);
147
- v29[0]=v65;
148
- v29[1]=v66;
149
- v29[2]=v67;
150
- v29[3]=v68;
151
- }
152
- v69=v4.cull_enable;
153
- if(v69!==v5.cull_enable){
154
- if(v69){
155
- v1.enable(2884);
156
- }
157
- else{
158
- v1.disable(2884);
159
- }
160
- v5.cull_enable=v69;
161
- }
162
- v70=v4.cull_face;
163
- if(v70!==v5.cull_face){
164
- v1.cullFace(v70);
165
- v5.cull_face=v70;
166
- }
167
- v71=v4.frontFace;
168
- if(v71!==v5.frontFace){
169
- v1.frontFace(v71);
170
- v5.frontFace=v71;
171
- }
172
- v72=v4.lineWidth;
173
- if(v72!==v5.lineWidth){
174
- v1.lineWidth(v72);
175
- v5.lineWidth=v72;
176
- }
177
- v73=v4.polygonOffset_enable;
178
- if(v73!==v5.polygonOffset_enable){
179
- if(v73){
180
- v1.enable(32823);
181
- }
182
- else{
183
- v1.disable(32823);
184
- }
185
- v5.polygonOffset_enable=v73;
186
- }
187
- v74=v30[0];
188
- v75=v30[1];
189
- if(v74!==v31[0]||v75!==v31[1]){
190
- v1.polygonOffset(v74,v75);
191
- v31[0]=v74;
192
- v31[1]=v75;
193
- }
194
- v76=v4.sample_alpha;
195
- if(v76!==v5.sample_alpha){
196
- if(v76){
197
- v1.enable(32926);
198
- }
199
- else{
200
- v1.disable(32926);
201
- }
202
- v5.sample_alpha=v76;
203
- }
204
- v77=v4.sample_enable;
205
- if(v77!==v5.sample_enable){
206
- if(v77){
207
- v1.enable(32928);
208
- }
209
- else{
210
- v1.disable(32928);
211
- }
212
- v5.sample_enable=v77;
213
- }
214
- v78=v32[0];
215
- v79=v32[1];
216
- if(v78!==v33[0]||v79!==v33[1]){
217
- v1.sampleCoverage(v78,v79);
218
- v33[0]=v78;
219
- v33[1]=v79;
220
- }
221
- v80=v4.stencil_mask;
222
- if(v80!==v5.stencil_mask){
223
- v1.stencilMask(v80);
224
- v5.stencil_mask=v80;
225
- }
226
- v81=v34[0];
227
- v82=v34[1];
228
- v83=v34[2];
229
- if(v81!==v35[0]||v82!==v35[1]||v83!==v35[2]){
230
- v1.stencilFunc(v81,v82,v83);
231
- v35[0]=v81;
232
- v35[1]=v82;
233
- v35[2]=v83;
234
- }
235
- v84=v36[0];
236
- v85=v36[1];
237
- v86=v36[2];
238
- v87=v36[3];
239
- if(v84!==v37[0]||v85!==v37[1]||v86!==v37[2]||v87!==v37[3]){
240
- v1.stencilOpSeparate(v84,v85,v86,v87);
241
- v37[0]=v84;
242
- v37[1]=v85;
243
- v37[2]=v86;
244
- v37[3]=v87;
245
- }
246
- v88=v38[0];
247
- v89=v38[1];
248
- v90=v38[2];
249
- v91=v38[3];
250
- if(v88!==v39[0]||v89!==v39[1]||v90!==v39[2]||v91!==v39[3]){
251
- v1.stencilOpSeparate(v88,v89,v90,v91);
252
- v39[0]=v88;
253
- v39[1]=v89;
254
- v39[2]=v90;
255
- v39[3]=v91;
256
- }
257
- }
258
- v92=a0["viewport"];
259
- if(!(v92&&typeof v92==="object"))g18.commandRaise(g93,g19);
260
- v94=v92.x|0;
261
- v95=v92.y|0;
262
- v96="width" in v92?v92.width|0:(v2.framebufferWidth-v94);
263
- v97="height" in v92?v92.height|0:(v2.framebufferHeight-v95);
264
- if(!(v96>=0&&v97>=0))g18.commandRaise(g93,g19);
265
- v98=v2.viewportWidth;
266
- v2.viewportWidth=v96;
267
- v99=v2.viewportHeight;
268
- v2.viewportHeight=v97;
269
- v1.viewport(v94,v95,v96,v97);
270
- v43[0]=v94;
271
- v43[1]=v95;
272
- v43[2]=v96;
273
- v43[3]=v97;
274
- v1.blendColor(0,0,0,0);
275
- v21[0]=0;
276
- v21[1]=0;
277
- v21[2]=0;
278
- v21[3]=0;
279
- if(g100){
280
- v1.enable(3042);
281
- }
282
- else{
283
- v1.disable(3042);
284
- }
285
- v5.blend_enable=g100;
286
- v1.blendEquationSeparate(32774,32774);
287
- v23[0]=32774;
288
- v23[1]=32774;
289
- v1.blendFuncSeparate(770,771,773,1);
290
- v25[0]=770;
291
- v25[1]=771;
292
- v25[2]=773;
293
- v25[3]=1;
294
- v102=g101.call(this,v2,a0,0);
295
- if(!(typeof v102==="boolean"))g18.commandRaise(g103,g19);
296
- if(v102){
297
- v1.enable(2929);
298
- }
299
- else{
300
- v1.disable(2929);
301
- }
302
- v5.depth_enable=v102;
303
- v104=a0["viewport"];
304
- if(!(v104&&typeof v104==="object"))g18.commandRaise(g105,g19);
305
- v106=v104.x|0;
306
- v107=v104.y|0;
307
- v108="width" in v104?v104.width|0:(v2.framebufferWidth-v106);
308
- v109="height" in v104?v104.height|0:(v2.framebufferHeight-v107);
309
- if(!(v108>=0&&v109>=0))g18.commandRaise(g105,g19);
310
- v1.scissor(v106,v107,v108,v109);
311
- v41[0]=v106;
312
- v41[1]=v107;
313
- v41[2]=v108;
314
- v41[3]=v109;
315
- if(g110){
316
- v1.enable(3089);
317
- }
318
- else{
319
- v1.disable(3089);
320
- }
321
- v5.scissor_enable=g110;
322
- if(g111){
323
- v1.enable(2960);
324
- }
325
- else{
326
- v1.disable(2960);
327
- }
328
- v5.stencil_enable=g111;
329
- v112=v5.profile;
330
- if(v112){
331
- v113=performance.now();
332
- g52.count++;
333
- }
334
- v1.useProgram(g114.program);
335
- v115=v14.angle_instanced_arrays;
336
- v11.setVAO(null);
337
- v116=a0["positionBuffer"];
338
- v53.buffer=v116;
339
- if(!(v53&&(typeof v53==="object"||typeof v53==="function")&&(v16(v53)||v8.getBuffer(v53)||v8.getBuffer(v53.buffer)||v16(v53.buffer)||("constant" in v53&&(typeof v53.constant==="number"||v17(v53.constant))))))g18.commandRaise(g117,g19);
340
- v118=false;
341
- v119=1;
342
- v120=0;
343
- v121=0;
344
- v122=0;
345
- v123=0;
346
- v124=null;
347
- v125=0;
348
- v126=false;
349
- v127=5126;
350
- v128=0;
351
- v129=0;
352
- v130=0;
353
- if(v16(v53)){
354
- v118=true;
355
- v124=v8.createStream(34962,v53);
356
- v127=v124.dtype;
357
- }
358
- else{
359
- v124=v8.getBuffer(v53);
360
- if(v124){
361
- v127=v124.dtype;
362
- }
363
- else if("constant" in v53){
364
- v119=2;
365
- if(typeof v53.constant === "number"){
366
- v120=v53.constant;
367
- v121=v122=v123=0;
368
- }
369
- else{
370
- v120=v53.constant.length>0?v53.constant[0]:0;
371
- v121=v53.constant.length>1?v53.constant[1]:0;
372
- v122=v53.constant.length>2?v53.constant[2]:0;
373
- v123=v53.constant.length>3?v53.constant[3]:0;
374
- }
375
- }
376
- else{
377
- if(v16(v53.buffer)){
378
- v124=v8.createStream(34962,v53.buffer);
379
- }
380
- else{
381
- v124=v8.getBuffer(v53.buffer);
382
- }
383
- v127="type" in v53?v49[v53.type]:v124.dtype;
384
- v126=!!v53.normalized;
385
- v125=v53.size|0;
386
- v128=v53.offset|0;
387
- v129=v53.stride|0;
388
- v130=v53.divisor|0;
389
- }
390
- }
391
- v132=g131.location;
392
- v133=v10[v132];
393
- if(v119===1){
394
- if(!v133.buffer){
395
- v1.enableVertexAttribArray(v132);
396
- }
397
- v134=v125||2;
398
- if(v133.type!==v127||v133.size!==v134||v133.buffer!==v124||v133.normalized!==v126||v133.offset!==v128||v133.stride!==v129){
399
- v1.bindBuffer(34962,v124.buffer);
400
- v1.vertexAttribPointer(v132,v134,v127,v126,v129,v128);
401
- v133.type=v127;
402
- v133.size=v134;
403
- v133.buffer=v124;
404
- v133.normalized=v126;
405
- v133.offset=v128;
406
- v133.stride=v129;
407
- }
408
- if(v133.divisor!==v130){
409
- v115.vertexAttribDivisorANGLE(v132,v130);
410
- v133.divisor=v130;
411
- }
412
- }
413
- else{
414
- if(v133.buffer){
415
- v1.disableVertexAttribArray(v132);
416
- v133.buffer=null;
417
- }
418
- if(v133.x!==v120||v133.y!==v121||v133.z!==v122||v133.w!==v123){
419
- v1.vertexAttrib4f(v132,v120,v121,v122,v123);
420
- v133.x=v120;
421
- v133.y=v121;
422
- v133.z=v122;
423
- v133.w=v123;
424
- }
425
- }
426
- v135=a0["positionFractBuffer"];
427
- v55.buffer=v135;
428
- if(!(v55&&(typeof v55==="object"||typeof v55==="function")&&(v16(v55)||v8.getBuffer(v55)||v8.getBuffer(v55.buffer)||v16(v55.buffer)||("constant" in v55&&(typeof v55.constant==="number"||v17(v55.constant))))))g18.commandRaise(g136,g19);
429
- v137=false;
430
- v138=1;
431
- v139=0;
432
- v140=0;
433
- v141=0;
434
- v142=0;
435
- v143=null;
436
- v144=0;
437
- v145=false;
438
- v146=5126;
439
- v147=0;
440
- v148=0;
441
- v149=0;
442
- if(v16(v55)){
443
- v137=true;
444
- v143=v8.createStream(34962,v55);
445
- v146=v143.dtype;
446
- }
447
- else{
448
- v143=v8.getBuffer(v55);
449
- if(v143){
450
- v146=v143.dtype;
451
- }
452
- else if("constant" in v55){
453
- v138=2;
454
- if(typeof v55.constant === "number"){
455
- v139=v55.constant;
456
- v140=v141=v142=0;
457
- }
458
- else{
459
- v139=v55.constant.length>0?v55.constant[0]:0;
460
- v140=v55.constant.length>1?v55.constant[1]:0;
461
- v141=v55.constant.length>2?v55.constant[2]:0;
462
- v142=v55.constant.length>3?v55.constant[3]:0;
463
- }
464
- }
465
- else{
466
- if(v16(v55.buffer)){
467
- v143=v8.createStream(34962,v55.buffer);
468
- }
469
- else{
470
- v143=v8.getBuffer(v55.buffer);
471
- }
472
- v146="type" in v55?v49[v55.type]:v143.dtype;
473
- v145=!!v55.normalized;
474
- v144=v55.size|0;
475
- v147=v55.offset|0;
476
- v148=v55.stride|0;
477
- v149=v55.divisor|0;
478
- }
479
- }
480
- v151=g150.location;
481
- v152=v10[v151];
482
- if(v138===1){
483
- if(!v152.buffer){
484
- v1.enableVertexAttribArray(v151);
485
- }
486
- v153=v144||2;
487
- if(v152.type!==v146||v152.size!==v153||v152.buffer!==v143||v152.normalized!==v145||v152.offset!==v147||v152.stride!==v148){
488
- v1.bindBuffer(34962,v143.buffer);
489
- v1.vertexAttribPointer(v151,v153,v146,v145,v148,v147);
490
- v152.type=v146;
491
- v152.size=v153;
492
- v152.buffer=v143;
493
- v152.normalized=v145;
494
- v152.offset=v147;
495
- v152.stride=v148;
496
- }
497
- if(v152.divisor!==v149){
498
- v115.vertexAttribDivisorANGLE(v151,v149);
499
- v152.divisor=v149;
500
- }
501
- }
502
- else{
503
- if(v152.buffer){
504
- v1.disableVertexAttribArray(v151);
505
- v152.buffer=null;
506
- }
507
- if(v152.x!==v139||v152.y!==v140||v152.z!==v141||v152.w!==v142){
508
- v1.vertexAttrib4f(v151,v139,v140,v141,v142);
509
- v152.x=v139;
510
- v152.y=v140;
511
- v152.z=v141;
512
- v152.w=v142;
513
- }
514
- }
515
- v154=a0["positionBuffer"];
516
- v54.buffer=v154;
517
- if(!(v54&&(typeof v54==="object"||typeof v54==="function")&&(v16(v54)||v8.getBuffer(v54)||v8.getBuffer(v54.buffer)||v16(v54.buffer)||("constant" in v54&&(typeof v54.constant==="number"||v17(v54.constant))))))g18.commandRaise(g155,g19);
518
- v156=false;
519
- v157=1;
520
- v158=0;
521
- v159=0;
522
- v160=0;
523
- v161=0;
524
- v162=null;
525
- v163=0;
526
- v164=false;
527
- v165=5126;
528
- v166=0;
529
- v167=0;
530
- v168=0;
531
- if(v16(v54)){
532
- v156=true;
533
- v162=v8.createStream(34962,v54);
534
- v165=v162.dtype;
535
- }
536
- else{
537
- v162=v8.getBuffer(v54);
538
- if(v162){
539
- v165=v162.dtype;
540
- }
541
- else if("constant" in v54){
542
- v157=2;
543
- if(typeof v54.constant === "number"){
544
- v158=v54.constant;
545
- v159=v160=v161=0;
546
- }
547
- else{
548
- v158=v54.constant.length>0?v54.constant[0]:0;
549
- v159=v54.constant.length>1?v54.constant[1]:0;
550
- v160=v54.constant.length>2?v54.constant[2]:0;
551
- v161=v54.constant.length>3?v54.constant[3]:0;
552
- }
553
- }
554
- else{
555
- if(v16(v54.buffer)){
556
- v162=v8.createStream(34962,v54.buffer);
557
- }
558
- else{
559
- v162=v8.getBuffer(v54.buffer);
560
- }
561
- v165="type" in v54?v49[v54.type]:v162.dtype;
562
- v164=!!v54.normalized;
563
- v163=v54.size|0;
564
- v166=v54.offset|0;
565
- v167=v54.stride|0;
566
- v168=v54.divisor|0;
567
- }
568
- }
569
- v170=g169.location;
570
- v171=v10[v170];
571
- if(v157===1){
572
- if(!v171.buffer){
573
- v1.enableVertexAttribArray(v170);
574
- }
575
- v172=v163||2;
576
- if(v171.type!==v165||v171.size!==v172||v171.buffer!==v162||v171.normalized!==v164||v171.offset!==v166||v171.stride!==v167){
577
- v1.bindBuffer(34962,v162.buffer);
578
- v1.vertexAttribPointer(v170,v172,v165,v164,v167,v166);
579
- v171.type=v165;
580
- v171.size=v172;
581
- v171.buffer=v162;
582
- v171.normalized=v164;
583
- v171.offset=v166;
584
- v171.stride=v167;
585
- }
586
- if(v171.divisor!==v168){
587
- v115.vertexAttribDivisorANGLE(v170,v168);
588
- v171.divisor=v168;
589
- }
590
- }
591
- else{
592
- if(v171.buffer){
593
- v1.disableVertexAttribArray(v170);
594
- v171.buffer=null;
595
- }
596
- if(v171.x!==v158||v171.y!==v159||v171.z!==v160||v171.w!==v161){
597
- v1.vertexAttrib4f(v170,v158,v159,v160,v161);
598
- v171.x=v158;
599
- v171.y=v159;
600
- v171.z=v160;
601
- v171.w=v161;
602
- }
603
- }
604
- v173=a0["positionFractBuffer"];
605
- v56.buffer=v173;
606
- if(!(v56&&(typeof v56==="object"||typeof v56==="function")&&(v16(v56)||v8.getBuffer(v56)||v8.getBuffer(v56.buffer)||v16(v56.buffer)||("constant" in v56&&(typeof v56.constant==="number"||v17(v56.constant))))))g18.commandRaise(g174,g19);
607
- v175=false;
608
- v176=1;
609
- v177=0;
610
- v178=0;
611
- v179=0;
612
- v180=0;
613
- v181=null;
614
- v182=0;
615
- v183=false;
616
- v184=5126;
617
- v185=0;
618
- v186=0;
619
- v187=0;
620
- if(v16(v56)){
621
- v175=true;
622
- v181=v8.createStream(34962,v56);
623
- v184=v181.dtype;
624
- }
625
- else{
626
- v181=v8.getBuffer(v56);
627
- if(v181){
628
- v184=v181.dtype;
629
- }
630
- else if("constant" in v56){
631
- v176=2;
632
- if(typeof v56.constant === "number"){
633
- v177=v56.constant;
634
- v178=v179=v180=0;
635
- }
636
- else{
637
- v177=v56.constant.length>0?v56.constant[0]:0;
638
- v178=v56.constant.length>1?v56.constant[1]:0;
639
- v179=v56.constant.length>2?v56.constant[2]:0;
640
- v180=v56.constant.length>3?v56.constant[3]:0;
641
- }
642
- }
643
- else{
644
- if(v16(v56.buffer)){
645
- v181=v8.createStream(34962,v56.buffer);
646
- }
647
- else{
648
- v181=v8.getBuffer(v56.buffer);
649
- }
650
- v184="type" in v56?v49[v56.type]:v181.dtype;
651
- v183=!!v56.normalized;
652
- v182=v56.size|0;
653
- v185=v56.offset|0;
654
- v186=v56.stride|0;
655
- v187=v56.divisor|0;
656
- }
657
- }
658
- v189=g188.location;
659
- v190=v10[v189];
660
- if(v176===1){
661
- if(!v190.buffer){
662
- v1.enableVertexAttribArray(v189);
663
- }
664
- v191=v182||2;
665
- if(v190.type!==v184||v190.size!==v191||v190.buffer!==v181||v190.normalized!==v183||v190.offset!==v185||v190.stride!==v186){
666
- v1.bindBuffer(34962,v181.buffer);
667
- v1.vertexAttribPointer(v189,v191,v184,v183,v186,v185);
668
- v190.type=v184;
669
- v190.size=v191;
670
- v190.buffer=v181;
671
- v190.normalized=v183;
672
- v190.offset=v185;
673
- v190.stride=v186;
674
- }
675
- if(v190.divisor!==v187){
676
- v115.vertexAttribDivisorANGLE(v189,v187);
677
- v190.divisor=v187;
678
- }
679
- }
680
- else{
681
- if(v190.buffer){
682
- v1.disableVertexAttribArray(v189);
683
- v190.buffer=null;
684
- }
685
- if(v190.x!==v177||v190.y!==v178||v190.z!==v179||v190.w!==v180){
686
- v1.vertexAttrib4f(v189,v177,v178,v179,v180);
687
- v190.x=v177;
688
- v190.y=v178;
689
- v190.z=v179;
690
- v190.w=v180;
691
- }
692
- }
693
- v192=a0["colorBuffer"];
694
- v57.buffer=v192;
695
- if(!(v57&&(typeof v57==="object"||typeof v57==="function")&&(v16(v57)||v8.getBuffer(v57)||v8.getBuffer(v57.buffer)||v16(v57.buffer)||("constant" in v57&&(typeof v57.constant==="number"||v17(v57.constant))))))g18.commandRaise(g193,g19);
696
- v194=false;
697
- v195=1;
698
- v196=0;
699
- v197=0;
700
- v198=0;
701
- v199=0;
702
- v200=null;
703
- v201=0;
704
- v202=false;
705
- v203=5126;
706
- v204=0;
707
- v205=0;
708
- v206=0;
709
- if(v16(v57)){
710
- v194=true;
711
- v200=v8.createStream(34962,v57);
712
- v203=v200.dtype;
713
- }
714
- else{
715
- v200=v8.getBuffer(v57);
716
- if(v200){
717
- v203=v200.dtype;
718
- }
719
- else if("constant" in v57){
720
- v195=2;
721
- if(typeof v57.constant === "number"){
722
- v196=v57.constant;
723
- v197=v198=v199=0;
724
- }
725
- else{
726
- v196=v57.constant.length>0?v57.constant[0]:0;
727
- v197=v57.constant.length>1?v57.constant[1]:0;
728
- v198=v57.constant.length>2?v57.constant[2]:0;
729
- v199=v57.constant.length>3?v57.constant[3]:0;
730
- }
731
- }
732
- else{
733
- if(v16(v57.buffer)){
734
- v200=v8.createStream(34962,v57.buffer);
735
- }
736
- else{
737
- v200=v8.getBuffer(v57.buffer);
738
- }
739
- v203="type" in v57?v49[v57.type]:v200.dtype;
740
- v202=!!v57.normalized;
741
- v201=v57.size|0;
742
- v204=v57.offset|0;
743
- v205=v57.stride|0;
744
- v206=v57.divisor|0;
745
- }
746
- }
747
- v208=g207.location;
748
- v209=v10[v208];
749
- if(v195===1){
750
- if(!v209.buffer){
751
- v1.enableVertexAttribArray(v208);
752
- }
753
- v210=v201||4;
754
- if(v209.type!==v203||v209.size!==v210||v209.buffer!==v200||v209.normalized!==v202||v209.offset!==v204||v209.stride!==v205){
755
- v1.bindBuffer(34962,v200.buffer);
756
- v1.vertexAttribPointer(v208,v210,v203,v202,v205,v204);
757
- v209.type=v203;
758
- v209.size=v210;
759
- v209.buffer=v200;
760
- v209.normalized=v202;
761
- v209.offset=v204;
762
- v209.stride=v205;
763
- }
764
- if(v209.divisor!==v206){
765
- v115.vertexAttribDivisorANGLE(v208,v206);
766
- v209.divisor=v206;
767
- }
768
- }
769
- else{
770
- if(v209.buffer){
771
- v1.disableVertexAttribArray(v208);
772
- v209.buffer=null;
773
- }
774
- if(v209.x!==v196||v209.y!==v197||v209.z!==v198||v209.w!==v199){
775
- v1.vertexAttrib4f(v208,v196,v197,v198,v199);
776
- v209.x=v196;
777
- v209.y=v197;
778
- v209.z=v198;
779
- v209.w=v199;
780
- }
781
- }
782
- v213=g212.location;
783
- v214=v10[v213];
784
- if(!v214.buffer){
785
- v1.enableVertexAttribArray(v213);
786
- }
787
- if(v214.type!==5126||v214.size!==1||v214.buffer!==g211||v214.normalized!==false||v214.offset!==0||v214.stride!==8){
788
- v1.bindBuffer(34962,g211.buffer);
789
- v1.vertexAttribPointer(v213,1,5126,false,8,0);
790
- v214.type=5126;
791
- v214.size=1;
792
- v214.buffer=g211;
793
- v214.normalized=false;
794
- v214.offset=0;
795
- v214.stride=8;
796
- }
797
- if(v214.divisor!==0){
798
- v115.vertexAttribDivisorANGLE(v213,0);
799
- v214.divisor=0;
800
- }
801
- v216=g215.location;
802
- v217=v10[v216];
803
- if(!v217.buffer){
804
- v1.enableVertexAttribArray(v216);
805
- }
806
- if(v217.type!==5126||v217.size!==1||v217.buffer!==g211||v217.normalized!==false||v217.offset!==4||v217.stride!==8){
807
- v1.bindBuffer(34962,g211.buffer);
808
- v1.vertexAttribPointer(v216,1,5126,false,8,4);
809
- v217.type=5126;
810
- v217.size=1;
811
- v217.buffer=g211;
812
- v217.normalized=false;
813
- v217.offset=4;
814
- v217.stride=8;
815
- }
816
- if(v217.divisor!==0){
817
- v115.vertexAttribDivisorANGLE(v216,0);
818
- v217.divisor=0;
819
- }
820
- v219=a0["dashLength"];
821
- if(!(typeof v219==="number"))g18.commandRaise(g220,g19);
822
- v1.uniform1f(g218.location,v219);
823
- v222=a0["dashTexture"];
824
- if(v222&&v222._reglType==="framebuffer"){
825
- v222=v222.color[0];
826
- }
827
- if(!(typeof v222==="function"&&v222._reglType==="texture2d"))g18.commandRaise(g223,g19);
828
- v224=v222._texture;
829
- v1.uniform1i(g221.location,v224.bind());
830
- v226=a0["depth"];
831
- if(!(typeof v226==="number"))g18.commandRaise(g227,g19);
832
- v1.uniform1f(g225.location,v226);
833
- v229=a0["opacity"];
834
- if(!(typeof v229==="number"))g18.commandRaise(g230,g19);
835
- v1.uniform1f(g228.location,v229);
836
- v232=a0["scale"];
837
- if(!(v17(v232)&&v232.length===2))g18.commandRaise(g233,g19);
838
- v234=v232[0];
839
- v235=v232[1];
840
- v1.uniform2f(g231.location,v234,v235);
841
- v237=a0["scaleFract"];
842
- if(!(v17(v237)&&v237.length===2))g18.commandRaise(g238,g19);
843
- v239=v237[0];
844
- v240=v237[1];
845
- v1.uniform2f(g236.location,v239,v240);
846
- v242=a0["thickness"];
847
- if(!(typeof v242==="number"))g18.commandRaise(g243,g19);
848
- v1.uniform1f(g241.location,v242);
849
- v245=a0["translate"];
850
- if(!(v17(v245)&&v245.length===2))g18.commandRaise(g246,g19);
851
- v247=v245[0];
852
- v248=v245[1];
853
- v1.uniform2f(g244.location,v247,v248);
854
- v250=a0["translateFract"];
855
- if(!(v17(v250)&&v250.length===2))g18.commandRaise(g251,g19);
856
- v252=v250[0];
857
- v253=v250[1];
858
- v1.uniform2f(g249.location,v252,v253);
859
- v256=g255.call(this,v2,a0,0);
860
- if(!(v17(v256)&&v256.length===4))g18.commandRaise(g257,g19);
861
- v258=v256[0];
862
- v259=v256[1];
863
- v260=v256[2];
864
- v261=v256[3];
865
- v1.uniform4f(g254.location,v258,v259,v260,v261);
866
- v262=v6.elements;
867
- if(v262){
868
- v1.bindBuffer(34963,v262.buffer.buffer);
869
- }
870
- else if(v11.currentVAO){
871
- v262=v7.getElements(v11.currentVAO.elements);
872
- if(v262)v1.bindBuffer(34963,v262.buffer.buffer);
873
- }
874
- v263=a0["count"];
875
- if(v263>0){
876
- if(v262){
877
- v115.drawElementsInstancedANGLE(5,4,v262.type,0<<((v262.type-5121)>>1),v263);
878
- }
879
- else{
880
- v115.drawArraysInstancedANGLE(5,0,4,v263);
881
- }
882
- }
883
- else if(v263<0){
884
- if(v262){
885
- v1.drawElements(5,4,v262.type,0<<((v262.type-5121)>>1));
886
- }
887
- else{
888
- v1.drawArrays(5,0,4);
889
- }
890
- }
891
- v5.dirty=true;
892
- v11.setVAO(null);
893
- v2.viewportWidth=v98;
894
- v2.viewportHeight=v99;
895
- if(v112){
896
- g52.cpuTime+=performance.now()-v113;
897
- }
898
- if(v118){
899
- v8.destroyStream(v124);
900
- }
901
- if(v137){
902
- v8.destroyStream(v143);
903
- }
904
- if(v156){
905
- v8.destroyStream(v162);
906
- }
907
- if(v175){
908
- v8.destroyStream(v181);
909
- }
910
- if(v194){
911
- v8.destroyStream(v200);
912
- }
913
- v224.unbind();
914
- }
915
- ,"scope":function(a0,a1,a2){
916
- var v264,v265,v266,v267,v268,v269,v270,v271,v272,v273,v274,v276,v278,v280,v282,v284,v286,v288,v290,v292,v294,v296,v297,v298,v299,v300,v301,v302,v303,v304,v305,v306,v307,v309,v311,v312,v313,v315,v317,v318,v319,v321,v323,v325,v326,v328,v329,v331,v332,v334,v335,v337,v338,v340,v341,v343,v344,v346,v347,v349,v350,v352,v353,v355,v356,v358,v359,v361,v362,v364,v366,v367,v368,v369,v370,v371,v372,v373,v374,v375,v376,v377,v379,v380,v381,v382,v383,v384,v385,v386,v387,v388,v389,v390,v391,v392,v393,v394,v395,v396,v397,v398,v399,v400,v401,v402,v403,v404,v406,v407,v408,v409,v410,v411,v412,v413,v414,v415,v416,v417,v418,v419,v420,v421,v422,v423,v424,v425,v426,v427,v428,v429,v430,v431,v433,v434,v435,v436,v437,v438,v439,v440,v441,v442,v443,v444,v445,v446,v447,v448,v449,v450,v451,v452,v453,v454,v455,v456,v457,v458,v460,v461,v462,v463,v464,v465,v466,v467,v468,v469,v470,v471,v472,v473,v474,v475,v476,v477,v478,v479,v480,v481,v482,v483,v484,v485,v487,v488,v489,v490,v491,v492,v493,v494,v495,v496,v497,v498,v499,v500,v501,v502,v503,v504,v505,v506,v507,v508,v509,v510,v511,v512,v514,v515,v516,v517,v518,v519,v520,v521,v522,v523,v524,v525,v527,v529;
917
- v264=a0["viewport"];
918
- if(!(v264&&typeof v264==="object"))g18.commandRaise(g93,g19);
919
- v265=v264.x|0;
920
- v266=v264.y|0;
921
- v267="width" in v264?v264.width|0:(v2.framebufferWidth-v265);
922
- v268="height" in v264?v264.height|0:(v2.framebufferHeight-v266);
923
- if(!(v267>=0&&v268>=0))g18.commandRaise(g93,g19);
924
- v269=v2.viewportWidth;
925
- v2.viewportWidth=v267;
926
- v270=v2.viewportHeight;
927
- v2.viewportHeight=v268;
928
- v271=v42[0];
929
- v42[0]=v265;
930
- v272=v42[1];
931
- v42[1]=v266;
932
- v273=v42[2];
933
- v42[2]=v267;
934
- v274=v42[3];
935
- v42[3]=v268;
936
- v276=v20[0];
937
- v20[0]=g275;
938
- v278=v20[1];
939
- v20[1]=g277;
940
- v280=v20[2];
941
- v20[2]=g279;
942
- v282=v20[3];
943
- v20[3]=g281;
944
- v284=v4.blend_enable;
945
- v4.blend_enable=g283;
946
- v286=v22[0];
947
- v22[0]=g285;
948
- v288=v22[1];
949
- v22[1]=g287;
950
- v290=v24[0];
951
- v24[0]=g289;
952
- v292=v24[1];
953
- v24[1]=g291;
954
- v294=v24[2];
955
- v24[2]=g293;
956
- v296=v24[3];
957
- v24[3]=g295;
958
- v297=g101.call(this,v2,a0,a2);
959
- if(!(typeof v297==="boolean"))g18.commandRaise(g103,g19);
960
- v298=v4.depth_enable;
961
- v4.depth_enable=v297;
962
- v299=a0["viewport"];
963
- if(!(v299&&typeof v299==="object"))g18.commandRaise(g105,g19);
964
- v300=v299.x|0;
965
- v301=v299.y|0;
966
- v302="width" in v299?v299.width|0:(v2.framebufferWidth-v300);
967
- v303="height" in v299?v299.height|0:(v2.framebufferHeight-v301);
968
- if(!(v302>=0&&v303>=0))g18.commandRaise(g105,g19);
969
- v304=v40[0];
970
- v40[0]=v300;
971
- v305=v40[1];
972
- v40[1]=v301;
973
- v306=v40[2];
974
- v40[2]=v302;
975
- v307=v40[3];
976
- v40[3]=v303;
977
- v309=v4.scissor_enable;
978
- v4.scissor_enable=g308;
979
- v311=v4.stencil_enable;
980
- v4.stencil_enable=g310;
981
- v312=v5.profile;
982
- if(v312){
983
- v313=performance.now();
984
- g52.count++;
985
- }
986
- v315=v6.offset;
987
- v6.offset=g314;
988
- v317=v6.count;
989
- v6.count=g316;
990
- v318=a0["count"];
991
- v319=v6.instances;
992
- v6.instances=v318;
993
- v321=v6.primitive;
994
- v6.primitive=g320;
995
- v323=g322.call(this,v2,a0,a2);
996
- v325=v12[g324];
997
- v12[g324]=v323;
998
- v326=a0["miterLimit"];
999
- v328=v12[g327];
1000
- v12[g327]=v326;
1001
- v329=a0["scale"];
1002
- v331=v12[g330];
1003
- v12[g330]=v329;
1004
- v332=a0["scaleFract"];
1005
- v334=v12[g333];
1006
- v12[g333]=v332;
1007
- v335=a0["translateFract"];
1008
- v337=v12[g336];
1009
- v12[g336]=v335;
1010
- v338=a0["translate"];
1011
- v340=v12[g339];
1012
- v12[g339]=v338;
1013
- v341=a0["thickness"];
1014
- v343=v12[g342];
1015
- v12[g342]=v341;
1016
- v344=a0["dashTexture"];
1017
- v346=v12[g345];
1018
- v12[g345]=v344;
1019
- v347=a0["opacity"];
1020
- v349=v12[g348];
1021
- v12[g348]=v347;
1022
- v350=v2["pixelRatio"];
1023
- v352=v12[g351];
1024
- v12[g351]=v350;
1025
- v353=a0["id"];
1026
- v355=v12[g354];
1027
- v12[g354]=v353;
1028
- v356=a0["dashLength"];
1029
- v358=v12[g357];
1030
- v12[g357]=v356;
1031
- v359=g255.call(this,v2,a0,a2);
1032
- v361=v12[g360];
1033
- v12[g360]=v359;
1034
- v362=a0["depth"];
1035
- v364=v12[g363];
1036
- v12[g363]=v362;
1037
- v366=g365.state;
1038
- g365.state=1;
1039
- v367=g365.x;
1040
- g365.x=0;
1041
- v368=g365.y;
1042
- g365.y=0;
1043
- v369=g365.z;
1044
- g365.z=0;
1045
- v370=g365.w;
1046
- g365.w=0;
1047
- v371=g365.buffer;
1048
- g365.buffer=g211;
1049
- v372=g365.size;
1050
- g365.size=0;
1051
- v373=g365.normalized;
1052
- g365.normalized=false;
1053
- v374=g365.type;
1054
- g365.type=5126;
1055
- v375=g365.offset;
1056
- g365.offset=0;
1057
- v376=g365.stride;
1058
- g365.stride=8;
1059
- v377=g365.divisor;
1060
- g365.divisor=0;
1061
- v379=g378.state;
1062
- g378.state=1;
1063
- v380=g378.x;
1064
- g378.x=0;
1065
- v381=g378.y;
1066
- g378.y=0;
1067
- v382=g378.z;
1068
- g378.z=0;
1069
- v383=g378.w;
1070
- g378.w=0;
1071
- v384=g378.buffer;
1072
- g378.buffer=g211;
1073
- v385=g378.size;
1074
- g378.size=0;
1075
- v386=g378.normalized;
1076
- g378.normalized=false;
1077
- v387=g378.type;
1078
- g378.type=5126;
1079
- v388=g378.offset;
1080
- g378.offset=4;
1081
- v389=g378.stride;
1082
- g378.stride=8;
1083
- v390=g378.divisor;
1084
- g378.divisor=0;
1085
- v391=a0["positionBuffer"];
1086
- v53.buffer=v391;
1087
- if(!(v53&&(typeof v53==="object"||typeof v53==="function")&&(v16(v53)||v8.getBuffer(v53)||v8.getBuffer(v53.buffer)||v16(v53.buffer)||("constant" in v53&&(typeof v53.constant==="number"||v17(v53.constant))))))g18.commandRaise(g117,g19);
1088
- v392=false;
1089
- v393=1;
1090
- v394=0;
1091
- v395=0;
1092
- v396=0;
1093
- v397=0;
1094
- v398=null;
1095
- v399=0;
1096
- v400=false;
1097
- v401=5126;
1098
- v402=0;
1099
- v403=0;
1100
- v404=0;
1101
- if(v16(v53)){
1102
- v392=true;
1103
- v398=v8.createStream(34962,v53);
1104
- v401=v398.dtype;
1105
- }
1106
- else{
1107
- v398=v8.getBuffer(v53);
1108
- if(v398){
1109
- v401=v398.dtype;
1110
- }
1111
- else if("constant" in v53){
1112
- v393=2;
1113
- if(typeof v53.constant === "number"){
1114
- v394=v53.constant;
1115
- v395=v396=v397=0;
1116
- }
1117
- else{
1118
- v394=v53.constant.length>0?v53.constant[0]:0;
1119
- v395=v53.constant.length>1?v53.constant[1]:0;
1120
- v396=v53.constant.length>2?v53.constant[2]:0;
1121
- v397=v53.constant.length>3?v53.constant[3]:0;
1122
- }
1123
- }
1124
- else{
1125
- if(v16(v53.buffer)){
1126
- v398=v8.createStream(34962,v53.buffer);
1127
- }
1128
- else{
1129
- v398=v8.getBuffer(v53.buffer);
1130
- }
1131
- v401="type" in v53?v49[v53.type]:v398.dtype;
1132
- v400=!!v53.normalized;
1133
- v399=v53.size|0;
1134
- v402=v53.offset|0;
1135
- v403=v53.stride|0;
1136
- v404=v53.divisor|0;
1137
- }
1138
- }
1139
- v406=g405.state;
1140
- g405.state=v393;
1141
- v407=g405.x;
1142
- g405.x=v394;
1143
- v408=g405.y;
1144
- g405.y=v395;
1145
- v409=g405.z;
1146
- g405.z=v396;
1147
- v410=g405.w;
1148
- g405.w=v397;
1149
- v411=g405.buffer;
1150
- g405.buffer=v398;
1151
- v412=g405.size;
1152
- g405.size=v399;
1153
- v413=g405.normalized;
1154
- g405.normalized=v400;
1155
- v414=g405.type;
1156
- g405.type=v401;
1157
- v415=g405.offset;
1158
- g405.offset=v402;
1159
- v416=g405.stride;
1160
- g405.stride=v403;
1161
- v417=g405.divisor;
1162
- g405.divisor=v404;
1163
- v418=a0["positionBuffer"];
1164
- v54.buffer=v418;
1165
- if(!(v54&&(typeof v54==="object"||typeof v54==="function")&&(v16(v54)||v8.getBuffer(v54)||v8.getBuffer(v54.buffer)||v16(v54.buffer)||("constant" in v54&&(typeof v54.constant==="number"||v17(v54.constant))))))g18.commandRaise(g155,g19);
1166
- v419=false;
1167
- v420=1;
1168
- v421=0;
1169
- v422=0;
1170
- v423=0;
1171
- v424=0;
1172
- v425=null;
1173
- v426=0;
1174
- v427=false;
1175
- v428=5126;
1176
- v429=0;
1177
- v430=0;
1178
- v431=0;
1179
- if(v16(v54)){
1180
- v419=true;
1181
- v425=v8.createStream(34962,v54);
1182
- v428=v425.dtype;
1183
- }
1184
- else{
1185
- v425=v8.getBuffer(v54);
1186
- if(v425){
1187
- v428=v425.dtype;
1188
- }
1189
- else if("constant" in v54){
1190
- v420=2;
1191
- if(typeof v54.constant === "number"){
1192
- v421=v54.constant;
1193
- v422=v423=v424=0;
1194
- }
1195
- else{
1196
- v421=v54.constant.length>0?v54.constant[0]:0;
1197
- v422=v54.constant.length>1?v54.constant[1]:0;
1198
- v423=v54.constant.length>2?v54.constant[2]:0;
1199
- v424=v54.constant.length>3?v54.constant[3]:0;
1200
- }
1201
- }
1202
- else{
1203
- if(v16(v54.buffer)){
1204
- v425=v8.createStream(34962,v54.buffer);
1205
- }
1206
- else{
1207
- v425=v8.getBuffer(v54.buffer);
1208
- }
1209
- v428="type" in v54?v49[v54.type]:v425.dtype;
1210
- v427=!!v54.normalized;
1211
- v426=v54.size|0;
1212
- v429=v54.offset|0;
1213
- v430=v54.stride|0;
1214
- v431=v54.divisor|0;
1215
- }
1216
- }
1217
- v433=g432.state;
1218
- g432.state=v420;
1219
- v434=g432.x;
1220
- g432.x=v421;
1221
- v435=g432.y;
1222
- g432.y=v422;
1223
- v436=g432.z;
1224
- g432.z=v423;
1225
- v437=g432.w;
1226
- g432.w=v424;
1227
- v438=g432.buffer;
1228
- g432.buffer=v425;
1229
- v439=g432.size;
1230
- g432.size=v426;
1231
- v440=g432.normalized;
1232
- g432.normalized=v427;
1233
- v441=g432.type;
1234
- g432.type=v428;
1235
- v442=g432.offset;
1236
- g432.offset=v429;
1237
- v443=g432.stride;
1238
- g432.stride=v430;
1239
- v444=g432.divisor;
1240
- g432.divisor=v431;
1241
- v445=a0["positionFractBuffer"];
1242
- v55.buffer=v445;
1243
- if(!(v55&&(typeof v55==="object"||typeof v55==="function")&&(v16(v55)||v8.getBuffer(v55)||v8.getBuffer(v55.buffer)||v16(v55.buffer)||("constant" in v55&&(typeof v55.constant==="number"||v17(v55.constant))))))g18.commandRaise(g136,g19);
1244
- v446=false;
1245
- v447=1;
1246
- v448=0;
1247
- v449=0;
1248
- v450=0;
1249
- v451=0;
1250
- v452=null;
1251
- v453=0;
1252
- v454=false;
1253
- v455=5126;
1254
- v456=0;
1255
- v457=0;
1256
- v458=0;
1257
- if(v16(v55)){
1258
- v446=true;
1259
- v452=v8.createStream(34962,v55);
1260
- v455=v452.dtype;
1261
- }
1262
- else{
1263
- v452=v8.getBuffer(v55);
1264
- if(v452){
1265
- v455=v452.dtype;
1266
- }
1267
- else if("constant" in v55){
1268
- v447=2;
1269
- if(typeof v55.constant === "number"){
1270
- v448=v55.constant;
1271
- v449=v450=v451=0;
1272
- }
1273
- else{
1274
- v448=v55.constant.length>0?v55.constant[0]:0;
1275
- v449=v55.constant.length>1?v55.constant[1]:0;
1276
- v450=v55.constant.length>2?v55.constant[2]:0;
1277
- v451=v55.constant.length>3?v55.constant[3]:0;
1278
- }
1279
- }
1280
- else{
1281
- if(v16(v55.buffer)){
1282
- v452=v8.createStream(34962,v55.buffer);
1283
- }
1284
- else{
1285
- v452=v8.getBuffer(v55.buffer);
1286
- }
1287
- v455="type" in v55?v49[v55.type]:v452.dtype;
1288
- v454=!!v55.normalized;
1289
- v453=v55.size|0;
1290
- v456=v55.offset|0;
1291
- v457=v55.stride|0;
1292
- v458=v55.divisor|0;
1293
- }
1294
- }
1295
- v460=g459.state;
1296
- g459.state=v447;
1297
- v461=g459.x;
1298
- g459.x=v448;
1299
- v462=g459.y;
1300
- g459.y=v449;
1301
- v463=g459.z;
1302
- g459.z=v450;
1303
- v464=g459.w;
1304
- g459.w=v451;
1305
- v465=g459.buffer;
1306
- g459.buffer=v452;
1307
- v466=g459.size;
1308
- g459.size=v453;
1309
- v467=g459.normalized;
1310
- g459.normalized=v454;
1311
- v468=g459.type;
1312
- g459.type=v455;
1313
- v469=g459.offset;
1314
- g459.offset=v456;
1315
- v470=g459.stride;
1316
- g459.stride=v457;
1317
- v471=g459.divisor;
1318
- g459.divisor=v458;
1319
- v472=a0["positionFractBuffer"];
1320
- v56.buffer=v472;
1321
- if(!(v56&&(typeof v56==="object"||typeof v56==="function")&&(v16(v56)||v8.getBuffer(v56)||v8.getBuffer(v56.buffer)||v16(v56.buffer)||("constant" in v56&&(typeof v56.constant==="number"||v17(v56.constant))))))g18.commandRaise(g174,g19);
1322
- v473=false;
1323
- v474=1;
1324
- v475=0;
1325
- v476=0;
1326
- v477=0;
1327
- v478=0;
1328
- v479=null;
1329
- v480=0;
1330
- v481=false;
1331
- v482=5126;
1332
- v483=0;
1333
- v484=0;
1334
- v485=0;
1335
- if(v16(v56)){
1336
- v473=true;
1337
- v479=v8.createStream(34962,v56);
1338
- v482=v479.dtype;
1339
- }
1340
- else{
1341
- v479=v8.getBuffer(v56);
1342
- if(v479){
1343
- v482=v479.dtype;
1344
- }
1345
- else if("constant" in v56){
1346
- v474=2;
1347
- if(typeof v56.constant === "number"){
1348
- v475=v56.constant;
1349
- v476=v477=v478=0;
1350
- }
1351
- else{
1352
- v475=v56.constant.length>0?v56.constant[0]:0;
1353
- v476=v56.constant.length>1?v56.constant[1]:0;
1354
- v477=v56.constant.length>2?v56.constant[2]:0;
1355
- v478=v56.constant.length>3?v56.constant[3]:0;
1356
- }
1357
- }
1358
- else{
1359
- if(v16(v56.buffer)){
1360
- v479=v8.createStream(34962,v56.buffer);
1361
- }
1362
- else{
1363
- v479=v8.getBuffer(v56.buffer);
1364
- }
1365
- v482="type" in v56?v49[v56.type]:v479.dtype;
1366
- v481=!!v56.normalized;
1367
- v480=v56.size|0;
1368
- v483=v56.offset|0;
1369
- v484=v56.stride|0;
1370
- v485=v56.divisor|0;
1371
- }
1372
- }
1373
- v487=g486.state;
1374
- g486.state=v474;
1375
- v488=g486.x;
1376
- g486.x=v475;
1377
- v489=g486.y;
1378
- g486.y=v476;
1379
- v490=g486.z;
1380
- g486.z=v477;
1381
- v491=g486.w;
1382
- g486.w=v478;
1383
- v492=g486.buffer;
1384
- g486.buffer=v479;
1385
- v493=g486.size;
1386
- g486.size=v480;
1387
- v494=g486.normalized;
1388
- g486.normalized=v481;
1389
- v495=g486.type;
1390
- g486.type=v482;
1391
- v496=g486.offset;
1392
- g486.offset=v483;
1393
- v497=g486.stride;
1394
- g486.stride=v484;
1395
- v498=g486.divisor;
1396
- g486.divisor=v485;
1397
- v499=a0["colorBuffer"];
1398
- v57.buffer=v499;
1399
- if(!(v57&&(typeof v57==="object"||typeof v57==="function")&&(v16(v57)||v8.getBuffer(v57)||v8.getBuffer(v57.buffer)||v16(v57.buffer)||("constant" in v57&&(typeof v57.constant==="number"||v17(v57.constant))))))g18.commandRaise(g193,g19);
1400
- v500=false;
1401
- v501=1;
1402
- v502=0;
1403
- v503=0;
1404
- v504=0;
1405
- v505=0;
1406
- v506=null;
1407
- v507=0;
1408
- v508=false;
1409
- v509=5126;
1410
- v510=0;
1411
- v511=0;
1412
- v512=0;
1413
- if(v16(v57)){
1414
- v500=true;
1415
- v506=v8.createStream(34962,v57);
1416
- v509=v506.dtype;
1417
- }
1418
- else{
1419
- v506=v8.getBuffer(v57);
1420
- if(v506){
1421
- v509=v506.dtype;
1422
- }
1423
- else if("constant" in v57){
1424
- v501=2;
1425
- if(typeof v57.constant === "number"){
1426
- v502=v57.constant;
1427
- v503=v504=v505=0;
1428
- }
1429
- else{
1430
- v502=v57.constant.length>0?v57.constant[0]:0;
1431
- v503=v57.constant.length>1?v57.constant[1]:0;
1432
- v504=v57.constant.length>2?v57.constant[2]:0;
1433
- v505=v57.constant.length>3?v57.constant[3]:0;
1434
- }
1435
- }
1436
- else{
1437
- if(v16(v57.buffer)){
1438
- v506=v8.createStream(34962,v57.buffer);
1439
- }
1440
- else{
1441
- v506=v8.getBuffer(v57.buffer);
1442
- }
1443
- v509="type" in v57?v49[v57.type]:v506.dtype;
1444
- v508=!!v57.normalized;
1445
- v507=v57.size|0;
1446
- v510=v57.offset|0;
1447
- v511=v57.stride|0;
1448
- v512=v57.divisor|0;
1449
- }
1450
- }
1451
- v514=g513.state;
1452
- g513.state=v501;
1453
- v515=g513.x;
1454
- g513.x=v502;
1455
- v516=g513.y;
1456
- g513.y=v503;
1457
- v517=g513.z;
1458
- g513.z=v504;
1459
- v518=g513.w;
1460
- g513.w=v505;
1461
- v519=g513.buffer;
1462
- g513.buffer=v506;
1463
- v520=g513.size;
1464
- g513.size=v507;
1465
- v521=g513.normalized;
1466
- g513.normalized=v508;
1467
- v522=g513.type;
1468
- g513.type=v509;
1469
- v523=g513.offset;
1470
- g513.offset=v510;
1471
- v524=g513.stride;
1472
- g513.stride=v511;
1473
- v525=g513.divisor;
1474
- g513.divisor=v512;
1475
- v527=v9.vert;
1476
- v9.vert=g526;
1477
- v529=v9.frag;
1478
- v9.frag=g528;
1479
- v5.dirty=true;
1480
- a1(v2,a0,a2);
1481
- v2.viewportWidth=v269;
1482
- v2.viewportHeight=v270;
1483
- v42[0]=v271;
1484
- v42[1]=v272;
1485
- v42[2]=v273;
1486
- v42[3]=v274;
1487
- v20[0]=v276;
1488
- v20[1]=v278;
1489
- v20[2]=v280;
1490
- v20[3]=v282;
1491
- v4.blend_enable=v284;
1492
- v22[0]=v286;
1493
- v22[1]=v288;
1494
- v24[0]=v290;
1495
- v24[1]=v292;
1496
- v24[2]=v294;
1497
- v24[3]=v296;
1498
- v4.depth_enable=v298;
1499
- v40[0]=v304;
1500
- v40[1]=v305;
1501
- v40[2]=v306;
1502
- v40[3]=v307;
1503
- v4.scissor_enable=v309;
1504
- v4.stencil_enable=v311;
1505
- if(v312){
1506
- g52.cpuTime+=performance.now()-v313;
1507
- }
1508
- v6.offset=v315;
1509
- v6.count=v317;
1510
- v6.instances=v319;
1511
- v6.primitive=v321;
1512
- v12[g324]=v325;
1513
- v12[g327]=v328;
1514
- v12[g330]=v331;
1515
- v12[g333]=v334;
1516
- v12[g336]=v337;
1517
- v12[g339]=v340;
1518
- v12[g342]=v343;
1519
- v12[g345]=v346;
1520
- v12[g348]=v349;
1521
- v12[g351]=v352;
1522
- v12[g354]=v355;
1523
- v12[g357]=v358;
1524
- v12[g360]=v361;
1525
- v12[g363]=v364;
1526
- g365.state=v366;
1527
- g365.x=v367;
1528
- g365.y=v368;
1529
- g365.z=v369;
1530
- g365.w=v370;
1531
- g365.buffer=v371;
1532
- g365.size=v372;
1533
- g365.normalized=v373;
1534
- g365.type=v374;
1535
- g365.offset=v375;
1536
- g365.stride=v376;
1537
- g365.divisor=v377;
1538
- g378.state=v379;
1539
- g378.x=v380;
1540
- g378.y=v381;
1541
- g378.z=v382;
1542
- g378.w=v383;
1543
- g378.buffer=v384;
1544
- g378.size=v385;
1545
- g378.normalized=v386;
1546
- g378.type=v387;
1547
- g378.offset=v388;
1548
- g378.stride=v389;
1549
- g378.divisor=v390;
1550
- if(v392){
1551
- v8.destroyStream(v398);
1552
- }
1553
- g405.state=v406;
1554
- g405.x=v407;
1555
- g405.y=v408;
1556
- g405.z=v409;
1557
- g405.w=v410;
1558
- g405.buffer=v411;
1559
- g405.size=v412;
1560
- g405.normalized=v413;
1561
- g405.type=v414;
1562
- g405.offset=v415;
1563
- g405.stride=v416;
1564
- g405.divisor=v417;
1565
- if(v419){
1566
- v8.destroyStream(v425);
1567
- }
1568
- g432.state=v433;
1569
- g432.x=v434;
1570
- g432.y=v435;
1571
- g432.z=v436;
1572
- g432.w=v437;
1573
- g432.buffer=v438;
1574
- g432.size=v439;
1575
- g432.normalized=v440;
1576
- g432.type=v441;
1577
- g432.offset=v442;
1578
- g432.stride=v443;
1579
- g432.divisor=v444;
1580
- if(v446){
1581
- v8.destroyStream(v452);
1582
- }
1583
- g459.state=v460;
1584
- g459.x=v461;
1585
- g459.y=v462;
1586
- g459.z=v463;
1587
- g459.w=v464;
1588
- g459.buffer=v465;
1589
- g459.size=v466;
1590
- g459.normalized=v467;
1591
- g459.type=v468;
1592
- g459.offset=v469;
1593
- g459.stride=v470;
1594
- g459.divisor=v471;
1595
- if(v473){
1596
- v8.destroyStream(v479);
1597
- }
1598
- g486.state=v487;
1599
- g486.x=v488;
1600
- g486.y=v489;
1601
- g486.z=v490;
1602
- g486.w=v491;
1603
- g486.buffer=v492;
1604
- g486.size=v493;
1605
- g486.normalized=v494;
1606
- g486.type=v495;
1607
- g486.offset=v496;
1608
- g486.stride=v497;
1609
- g486.divisor=v498;
1610
- if(v500){
1611
- v8.destroyStream(v506);
1612
- }
1613
- g513.state=v514;
1614
- g513.x=v515;
1615
- g513.y=v516;
1616
- g513.z=v517;
1617
- g513.w=v518;
1618
- g513.buffer=v519;
1619
- g513.size=v520;
1620
- g513.normalized=v521;
1621
- g513.type=v522;
1622
- g513.offset=v523;
1623
- g513.stride=v524;
1624
- g513.divisor=v525;
1625
- v9.vert=v527;
1626
- v9.frag=v529;
1627
- v5.dirty=true;
1628
- }
1629
- ,"batch":function(a0,a1){
1630
- var v530,v531,v567,v568,v569,v570,v571;
1631
- v530=v14.angle_instanced_arrays;
1632
- v531=v13.next;
1633
- if(v531!==v13.cur){
1634
- if(v531){
1635
- v1.bindFramebuffer(36160,v531.framebuffer);
1636
- }
1637
- else{
1638
- v1.bindFramebuffer(36160,null);
1639
- }
1640
- v13.cur=v531;
1641
- }
1642
- if(v5.dirty){
1643
- var v532,v533,v534,v535,v536,v537,v538,v539,v540,v541,v542,v543,v544,v545,v546,v547,v548,v549,v550,v551,v552,v553,v554,v555,v556,v557,v558,v559,v560,v561,v562,v563;
1644
- v532=v4.dither;
1645
- if(v532!==v5.dither){
1646
- if(v532){
1647
- v1.enable(3024);
1648
- }
1649
- else{
1650
- v1.disable(3024);
1651
- }
1652
- v5.dither=v532;
1653
- }
1654
- v533=v4.depth_func;
1655
- if(v533!==v5.depth_func){
1656
- v1.depthFunc(v533);
1657
- v5.depth_func=v533;
1658
- }
1659
- v534=v26[0];
1660
- v535=v26[1];
1661
- if(v534!==v27[0]||v535!==v27[1]){
1662
- v1.depthRange(v534,v535);
1663
- v27[0]=v534;
1664
- v27[1]=v535;
1665
- }
1666
- v536=v4.depth_mask;
1667
- if(v536!==v5.depth_mask){
1668
- v1.depthMask(v536);
1669
- v5.depth_mask=v536;
1670
- }
1671
- v537=v28[0];
1672
- v538=v28[1];
1673
- v539=v28[2];
1674
- v540=v28[3];
1675
- if(v537!==v29[0]||v538!==v29[1]||v539!==v29[2]||v540!==v29[3]){
1676
- v1.colorMask(v537,v538,v539,v540);
1677
- v29[0]=v537;
1678
- v29[1]=v538;
1679
- v29[2]=v539;
1680
- v29[3]=v540;
1681
- }
1682
- v541=v4.cull_enable;
1683
- if(v541!==v5.cull_enable){
1684
- if(v541){
1685
- v1.enable(2884);
1686
- }
1687
- else{
1688
- v1.disable(2884);
1689
- }
1690
- v5.cull_enable=v541;
1691
- }
1692
- v542=v4.cull_face;
1693
- if(v542!==v5.cull_face){
1694
- v1.cullFace(v542);
1695
- v5.cull_face=v542;
1696
- }
1697
- v543=v4.frontFace;
1698
- if(v543!==v5.frontFace){
1699
- v1.frontFace(v543);
1700
- v5.frontFace=v543;
1701
- }
1702
- v544=v4.lineWidth;
1703
- if(v544!==v5.lineWidth){
1704
- v1.lineWidth(v544);
1705
- v5.lineWidth=v544;
1706
- }
1707
- v545=v4.polygonOffset_enable;
1708
- if(v545!==v5.polygonOffset_enable){
1709
- if(v545){
1710
- v1.enable(32823);
1711
- }
1712
- else{
1713
- v1.disable(32823);
1714
- }
1715
- v5.polygonOffset_enable=v545;
1716
- }
1717
- v546=v30[0];
1718
- v547=v30[1];
1719
- if(v546!==v31[0]||v547!==v31[1]){
1720
- v1.polygonOffset(v546,v547);
1721
- v31[0]=v546;
1722
- v31[1]=v547;
1723
- }
1724
- v548=v4.sample_alpha;
1725
- if(v548!==v5.sample_alpha){
1726
- if(v548){
1727
- v1.enable(32926);
1728
- }
1729
- else{
1730
- v1.disable(32926);
1731
- }
1732
- v5.sample_alpha=v548;
1733
- }
1734
- v549=v4.sample_enable;
1735
- if(v549!==v5.sample_enable){
1736
- if(v549){
1737
- v1.enable(32928);
1738
- }
1739
- else{
1740
- v1.disable(32928);
1741
- }
1742
- v5.sample_enable=v549;
1743
- }
1744
- v550=v32[0];
1745
- v551=v32[1];
1746
- if(v550!==v33[0]||v551!==v33[1]){
1747
- v1.sampleCoverage(v550,v551);
1748
- v33[0]=v550;
1749
- v33[1]=v551;
1750
- }
1751
- v552=v4.stencil_mask;
1752
- if(v552!==v5.stencil_mask){
1753
- v1.stencilMask(v552);
1754
- v5.stencil_mask=v552;
1755
- }
1756
- v553=v34[0];
1757
- v554=v34[1];
1758
- v555=v34[2];
1759
- if(v553!==v35[0]||v554!==v35[1]||v555!==v35[2]){
1760
- v1.stencilFunc(v553,v554,v555);
1761
- v35[0]=v553;
1762
- v35[1]=v554;
1763
- v35[2]=v555;
1764
- }
1765
- v556=v36[0];
1766
- v557=v36[1];
1767
- v558=v36[2];
1768
- v559=v36[3];
1769
- if(v556!==v37[0]||v557!==v37[1]||v558!==v37[2]||v559!==v37[3]){
1770
- v1.stencilOpSeparate(v556,v557,v558,v559);
1771
- v37[0]=v556;
1772
- v37[1]=v557;
1773
- v37[2]=v558;
1774
- v37[3]=v559;
1775
- }
1776
- v560=v38[0];
1777
- v561=v38[1];
1778
- v562=v38[2];
1779
- v563=v38[3];
1780
- if(v560!==v39[0]||v561!==v39[1]||v562!==v39[2]||v563!==v39[3]){
1781
- v1.stencilOpSeparate(v560,v561,v562,v563);
1782
- v39[0]=v560;
1783
- v39[1]=v561;
1784
- v39[2]=v562;
1785
- v39[3]=v563;
1786
- }
1787
- }
1788
- v1.blendColor(0,0,0,0);
1789
- v21[0]=0;
1790
- v21[1]=0;
1791
- v21[2]=0;
1792
- v21[3]=0;
1793
- if(g564){
1794
- v1.enable(3042);
1795
- }
1796
- else{
1797
- v1.disable(3042);
1798
- }
1799
- v5.blend_enable=g564;
1800
- v1.blendEquationSeparate(32774,32774);
1801
- v23[0]=32774;
1802
- v23[1]=32774;
1803
- v1.blendFuncSeparate(770,771,773,1);
1804
- v25[0]=770;
1805
- v25[1]=771;
1806
- v25[2]=773;
1807
- v25[3]=1;
1808
- if(g565){
1809
- v1.enable(3089);
1810
- }
1811
- else{
1812
- v1.disable(3089);
1813
- }
1814
- v5.scissor_enable=g565;
1815
- if(g566){
1816
- v1.enable(2960);
1817
- }
1818
- else{
1819
- v1.disable(2960);
1820
- }
1821
- v5.stencil_enable=g566;
1822
- v567=v5.profile;
1823
- if(v567){
1824
- v568=performance.now();
1825
- g52.count+=a1;
1826
- }
1827
- v1.useProgram(g114.program);
1828
- v569=v14.angle_instanced_arrays;
1829
- var v585,v586,v587,v588,v713;
1830
- v11.setVAO(null);
1831
- v585=g212.location;
1832
- v586=v10[v585];
1833
- if(!v586.buffer){
1834
- v1.enableVertexAttribArray(v585);
1835
- }
1836
- if(v586.type!==5126||v586.size!==1||v586.buffer!==g211||v586.normalized!==false||v586.offset!==0||v586.stride!==8){
1837
- v1.bindBuffer(34962,g211.buffer);
1838
- v1.vertexAttribPointer(v585,1,5126,false,8,0);
1839
- v586.type=5126;
1840
- v586.size=1;
1841
- v586.buffer=g211;
1842
- v586.normalized=false;
1843
- v586.offset=0;
1844
- v586.stride=8;
1845
- }
1846
- if(v586.divisor!==0){
1847
- v569.vertexAttribDivisorANGLE(v585,0);
1848
- v586.divisor=0;
1849
- }
1850
- v587=g215.location;
1851
- v588=v10[v587];
1852
- if(!v588.buffer){
1853
- v1.enableVertexAttribArray(v587);
1854
- }
1855
- if(v588.type!==5126||v588.size!==1||v588.buffer!==g211||v588.normalized!==false||v588.offset!==4||v588.stride!==8){
1856
- v1.bindBuffer(34962,g211.buffer);
1857
- v1.vertexAttribPointer(v587,1,5126,false,8,4);
1858
- v588.type=5126;
1859
- v588.size=1;
1860
- v588.buffer=g211;
1861
- v588.normalized=false;
1862
- v588.offset=4;
1863
- v588.stride=8;
1864
- }
1865
- if(v588.divisor!==0){
1866
- v569.vertexAttribDivisorANGLE(v587,0);
1867
- v588.divisor=0;
1868
- }
1869
- v713=v6.elements;
1870
- if(v713){
1871
- v1.bindBuffer(34963,v713.buffer.buffer);
1872
- }
1873
- else if(v11.currentVAO){
1874
- v713=v7.getElements(v11.currentVAO.elements);
1875
- if(v713)v1.bindBuffer(34963,v713.buffer.buffer);
1876
- }
1877
- for(v570=0;
1878
- v570<a1;
1879
- ++v570){
1880
- v571=a0[v570];
1881
- var v572,v573,v574,v575,v576,v577,v578,v579,v580,v581,v582,v583,v584,v589,v590,v591,v592,v593,v594,v595,v596,v597,v598,v599,v600,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,v627,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,v654,v655,v656,v657,v658,v659,v660,v661,v662,v663,v664,v665,v666,v667,v668,v669,v670,v671,v672,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,v707,v708,v709,v710,v711,v712,v714;
1882
- v572=v571["viewport"];
1883
- if(!(v572&&typeof v572==="object"))g18.commandRaise(g93,g19);
1884
- v573=v572.x|0;
1885
- v574=v572.y|0;
1886
- v575="width" in v572?v572.width|0:(v2.framebufferWidth-v573);
1887
- v576="height" in v572?v572.height|0:(v2.framebufferHeight-v574);
1888
- if(!(v575>=0&&v576>=0))g18.commandRaise(g93,g19);
1889
- v577=v2.viewportWidth;
1890
- v2.viewportWidth=v575;
1891
- v578=v2.viewportHeight;
1892
- v2.viewportHeight=v576;
1893
- v1.viewport(v573,v574,v575,v576);
1894
- v43[0]=v573;
1895
- v43[1]=v574;
1896
- v43[2]=v575;
1897
- v43[3]=v576;
1898
- v579=g101.call(this,v2,v571,v570);
1899
- if(!(typeof v579==="boolean"))g18.commandRaise(g103,g19);
1900
- if(v579){
1901
- v1.enable(2929);
1902
- }
1903
- else{
1904
- v1.disable(2929);
1905
- }
1906
- v5.depth_enable=v579;
1907
- v580=v571["viewport"];
1908
- if(!(v580&&typeof v580==="object"))g18.commandRaise(g105,g19);
1909
- v581=v580.x|0;
1910
- v582=v580.y|0;
1911
- v583="width" in v580?v580.width|0:(v2.framebufferWidth-v581);
1912
- v584="height" in v580?v580.height|0:(v2.framebufferHeight-v582);
1913
- if(!(v583>=0&&v584>=0))g18.commandRaise(g105,g19);
1914
- v1.scissor(v581,v582,v583,v584);
1915
- v41[0]=v581;
1916
- v41[1]=v582;
1917
- v41[2]=v583;
1918
- v41[3]=v584;
1919
- v589=v571["positionBuffer"];
1920
- v53.buffer=v589;
1921
- if(!(v53&&(typeof v53==="object"||typeof v53==="function")&&(v16(v53)||v8.getBuffer(v53)||v8.getBuffer(v53.buffer)||v16(v53.buffer)||("constant" in v53&&(typeof v53.constant==="number"||v17(v53.constant))))))g18.commandRaise(g117,g19);
1922
- v590=false;
1923
- v591=1;
1924
- v592=0;
1925
- v593=0;
1926
- v594=0;
1927
- v595=0;
1928
- v596=null;
1929
- v597=0;
1930
- v598=false;
1931
- v599=5126;
1932
- v600=0;
1933
- v601=0;
1934
- v602=0;
1935
- if(v16(v53)){
1936
- v590=true;
1937
- v596=v8.createStream(34962,v53);
1938
- v599=v596.dtype;
1939
- }
1940
- else{
1941
- v596=v8.getBuffer(v53);
1942
- if(v596){
1943
- v599=v596.dtype;
1944
- }
1945
- else if("constant" in v53){
1946
- v591=2;
1947
- if(typeof v53.constant === "number"){
1948
- v592=v53.constant;
1949
- v593=v594=v595=0;
1950
- }
1951
- else{
1952
- v592=v53.constant.length>0?v53.constant[0]:0;
1953
- v593=v53.constant.length>1?v53.constant[1]:0;
1954
- v594=v53.constant.length>2?v53.constant[2]:0;
1955
- v595=v53.constant.length>3?v53.constant[3]:0;
1956
- }
1957
- }
1958
- else{
1959
- if(v16(v53.buffer)){
1960
- v596=v8.createStream(34962,v53.buffer);
1961
- }
1962
- else{
1963
- v596=v8.getBuffer(v53.buffer);
1964
- }
1965
- v599="type" in v53?v49[v53.type]:v596.dtype;
1966
- v598=!!v53.normalized;
1967
- v597=v53.size|0;
1968
- v600=v53.offset|0;
1969
- v601=v53.stride|0;
1970
- v602=v53.divisor|0;
1971
- }
1972
- }
1973
- v603=g131.location;
1974
- v604=v10[v603];
1975
- if(v591===1){
1976
- if(!v604.buffer){
1977
- v1.enableVertexAttribArray(v603);
1978
- }
1979
- v605=v597||2;
1980
- if(v604.type!==v599||v604.size!==v605||v604.buffer!==v596||v604.normalized!==v598||v604.offset!==v600||v604.stride!==v601){
1981
- v1.bindBuffer(34962,v596.buffer);
1982
- v1.vertexAttribPointer(v603,v605,v599,v598,v601,v600);
1983
- v604.type=v599;
1984
- v604.size=v605;
1985
- v604.buffer=v596;
1986
- v604.normalized=v598;
1987
- v604.offset=v600;
1988
- v604.stride=v601;
1989
- }
1990
- if(v604.divisor!==v602){
1991
- v569.vertexAttribDivisorANGLE(v603,v602);
1992
- v604.divisor=v602;
1993
- }
1994
- }
1995
- else{
1996
- if(v604.buffer){
1997
- v1.disableVertexAttribArray(v603);
1998
- v604.buffer=null;
1999
- }
2000
- if(v604.x!==v592||v604.y!==v593||v604.z!==v594||v604.w!==v595){
2001
- v1.vertexAttrib4f(v603,v592,v593,v594,v595);
2002
- v604.x=v592;
2003
- v604.y=v593;
2004
- v604.z=v594;
2005
- v604.w=v595;
2006
- }
2007
- }
2008
- v606=v571["positionFractBuffer"];
2009
- v55.buffer=v606;
2010
- if(!(v55&&(typeof v55==="object"||typeof v55==="function")&&(v16(v55)||v8.getBuffer(v55)||v8.getBuffer(v55.buffer)||v16(v55.buffer)||("constant" in v55&&(typeof v55.constant==="number"||v17(v55.constant))))))g18.commandRaise(g136,g19);
2011
- v607=false;
2012
- v608=1;
2013
- v609=0;
2014
- v610=0;
2015
- v611=0;
2016
- v612=0;
2017
- v613=null;
2018
- v614=0;
2019
- v615=false;
2020
- v616=5126;
2021
- v617=0;
2022
- v618=0;
2023
- v619=0;
2024
- if(v16(v55)){
2025
- v607=true;
2026
- v613=v8.createStream(34962,v55);
2027
- v616=v613.dtype;
2028
- }
2029
- else{
2030
- v613=v8.getBuffer(v55);
2031
- if(v613){
2032
- v616=v613.dtype;
2033
- }
2034
- else if("constant" in v55){
2035
- v608=2;
2036
- if(typeof v55.constant === "number"){
2037
- v609=v55.constant;
2038
- v610=v611=v612=0;
2039
- }
2040
- else{
2041
- v609=v55.constant.length>0?v55.constant[0]:0;
2042
- v610=v55.constant.length>1?v55.constant[1]:0;
2043
- v611=v55.constant.length>2?v55.constant[2]:0;
2044
- v612=v55.constant.length>3?v55.constant[3]:0;
2045
- }
2046
- }
2047
- else{
2048
- if(v16(v55.buffer)){
2049
- v613=v8.createStream(34962,v55.buffer);
2050
- }
2051
- else{
2052
- v613=v8.getBuffer(v55.buffer);
2053
- }
2054
- v616="type" in v55?v49[v55.type]:v613.dtype;
2055
- v615=!!v55.normalized;
2056
- v614=v55.size|0;
2057
- v617=v55.offset|0;
2058
- v618=v55.stride|0;
2059
- v619=v55.divisor|0;
2060
- }
2061
- }
2062
- v620=g150.location;
2063
- v621=v10[v620];
2064
- if(v608===1){
2065
- if(!v621.buffer){
2066
- v1.enableVertexAttribArray(v620);
2067
- }
2068
- v622=v614||2;
2069
- if(v621.type!==v616||v621.size!==v622||v621.buffer!==v613||v621.normalized!==v615||v621.offset!==v617||v621.stride!==v618){
2070
- v1.bindBuffer(34962,v613.buffer);
2071
- v1.vertexAttribPointer(v620,v622,v616,v615,v618,v617);
2072
- v621.type=v616;
2073
- v621.size=v622;
2074
- v621.buffer=v613;
2075
- v621.normalized=v615;
2076
- v621.offset=v617;
2077
- v621.stride=v618;
2078
- }
2079
- if(v621.divisor!==v619){
2080
- v569.vertexAttribDivisorANGLE(v620,v619);
2081
- v621.divisor=v619;
2082
- }
2083
- }
2084
- else{
2085
- if(v621.buffer){
2086
- v1.disableVertexAttribArray(v620);
2087
- v621.buffer=null;
2088
- }
2089
- if(v621.x!==v609||v621.y!==v610||v621.z!==v611||v621.w!==v612){
2090
- v1.vertexAttrib4f(v620,v609,v610,v611,v612);
2091
- v621.x=v609;
2092
- v621.y=v610;
2093
- v621.z=v611;
2094
- v621.w=v612;
2095
- }
2096
- }
2097
- v623=v571["positionBuffer"];
2098
- v54.buffer=v623;
2099
- if(!(v54&&(typeof v54==="object"||typeof v54==="function")&&(v16(v54)||v8.getBuffer(v54)||v8.getBuffer(v54.buffer)||v16(v54.buffer)||("constant" in v54&&(typeof v54.constant==="number"||v17(v54.constant))))))g18.commandRaise(g155,g19);
2100
- v624=false;
2101
- v625=1;
2102
- v626=0;
2103
- v627=0;
2104
- v628=0;
2105
- v629=0;
2106
- v630=null;
2107
- v631=0;
2108
- v632=false;
2109
- v633=5126;
2110
- v634=0;
2111
- v635=0;
2112
- v636=0;
2113
- if(v16(v54)){
2114
- v624=true;
2115
- v630=v8.createStream(34962,v54);
2116
- v633=v630.dtype;
2117
- }
2118
- else{
2119
- v630=v8.getBuffer(v54);
2120
- if(v630){
2121
- v633=v630.dtype;
2122
- }
2123
- else if("constant" in v54){
2124
- v625=2;
2125
- if(typeof v54.constant === "number"){
2126
- v626=v54.constant;
2127
- v627=v628=v629=0;
2128
- }
2129
- else{
2130
- v626=v54.constant.length>0?v54.constant[0]:0;
2131
- v627=v54.constant.length>1?v54.constant[1]:0;
2132
- v628=v54.constant.length>2?v54.constant[2]:0;
2133
- v629=v54.constant.length>3?v54.constant[3]:0;
2134
- }
2135
- }
2136
- else{
2137
- if(v16(v54.buffer)){
2138
- v630=v8.createStream(34962,v54.buffer);
2139
- }
2140
- else{
2141
- v630=v8.getBuffer(v54.buffer);
2142
- }
2143
- v633="type" in v54?v49[v54.type]:v630.dtype;
2144
- v632=!!v54.normalized;
2145
- v631=v54.size|0;
2146
- v634=v54.offset|0;
2147
- v635=v54.stride|0;
2148
- v636=v54.divisor|0;
2149
- }
2150
- }
2151
- v637=g169.location;
2152
- v638=v10[v637];
2153
- if(v625===1){
2154
- if(!v638.buffer){
2155
- v1.enableVertexAttribArray(v637);
2156
- }
2157
- v639=v631||2;
2158
- if(v638.type!==v633||v638.size!==v639||v638.buffer!==v630||v638.normalized!==v632||v638.offset!==v634||v638.stride!==v635){
2159
- v1.bindBuffer(34962,v630.buffer);
2160
- v1.vertexAttribPointer(v637,v639,v633,v632,v635,v634);
2161
- v638.type=v633;
2162
- v638.size=v639;
2163
- v638.buffer=v630;
2164
- v638.normalized=v632;
2165
- v638.offset=v634;
2166
- v638.stride=v635;
2167
- }
2168
- if(v638.divisor!==v636){
2169
- v569.vertexAttribDivisorANGLE(v637,v636);
2170
- v638.divisor=v636;
2171
- }
2172
- }
2173
- else{
2174
- if(v638.buffer){
2175
- v1.disableVertexAttribArray(v637);
2176
- v638.buffer=null;
2177
- }
2178
- if(v638.x!==v626||v638.y!==v627||v638.z!==v628||v638.w!==v629){
2179
- v1.vertexAttrib4f(v637,v626,v627,v628,v629);
2180
- v638.x=v626;
2181
- v638.y=v627;
2182
- v638.z=v628;
2183
- v638.w=v629;
2184
- }
2185
- }
2186
- v640=v571["positionFractBuffer"];
2187
- v56.buffer=v640;
2188
- if(!(v56&&(typeof v56==="object"||typeof v56==="function")&&(v16(v56)||v8.getBuffer(v56)||v8.getBuffer(v56.buffer)||v16(v56.buffer)||("constant" in v56&&(typeof v56.constant==="number"||v17(v56.constant))))))g18.commandRaise(g174,g19);
2189
- v641=false;
2190
- v642=1;
2191
- v643=0;
2192
- v644=0;
2193
- v645=0;
2194
- v646=0;
2195
- v647=null;
2196
- v648=0;
2197
- v649=false;
2198
- v650=5126;
2199
- v651=0;
2200
- v652=0;
2201
- v653=0;
2202
- if(v16(v56)){
2203
- v641=true;
2204
- v647=v8.createStream(34962,v56);
2205
- v650=v647.dtype;
2206
- }
2207
- else{
2208
- v647=v8.getBuffer(v56);
2209
- if(v647){
2210
- v650=v647.dtype;
2211
- }
2212
- else if("constant" in v56){
2213
- v642=2;
2214
- if(typeof v56.constant === "number"){
2215
- v643=v56.constant;
2216
- v644=v645=v646=0;
2217
- }
2218
- else{
2219
- v643=v56.constant.length>0?v56.constant[0]:0;
2220
- v644=v56.constant.length>1?v56.constant[1]:0;
2221
- v645=v56.constant.length>2?v56.constant[2]:0;
2222
- v646=v56.constant.length>3?v56.constant[3]:0;
2223
- }
2224
- }
2225
- else{
2226
- if(v16(v56.buffer)){
2227
- v647=v8.createStream(34962,v56.buffer);
2228
- }
2229
- else{
2230
- v647=v8.getBuffer(v56.buffer);
2231
- }
2232
- v650="type" in v56?v49[v56.type]:v647.dtype;
2233
- v649=!!v56.normalized;
2234
- v648=v56.size|0;
2235
- v651=v56.offset|0;
2236
- v652=v56.stride|0;
2237
- v653=v56.divisor|0;
2238
- }
2239
- }
2240
- v654=g188.location;
2241
- v655=v10[v654];
2242
- if(v642===1){
2243
- if(!v655.buffer){
2244
- v1.enableVertexAttribArray(v654);
2245
- }
2246
- v656=v648||2;
2247
- if(v655.type!==v650||v655.size!==v656||v655.buffer!==v647||v655.normalized!==v649||v655.offset!==v651||v655.stride!==v652){
2248
- v1.bindBuffer(34962,v647.buffer);
2249
- v1.vertexAttribPointer(v654,v656,v650,v649,v652,v651);
2250
- v655.type=v650;
2251
- v655.size=v656;
2252
- v655.buffer=v647;
2253
- v655.normalized=v649;
2254
- v655.offset=v651;
2255
- v655.stride=v652;
2256
- }
2257
- if(v655.divisor!==v653){
2258
- v569.vertexAttribDivisorANGLE(v654,v653);
2259
- v655.divisor=v653;
2260
- }
2261
- }
2262
- else{
2263
- if(v655.buffer){
2264
- v1.disableVertexAttribArray(v654);
2265
- v655.buffer=null;
2266
- }
2267
- if(v655.x!==v643||v655.y!==v644||v655.z!==v645||v655.w!==v646){
2268
- v1.vertexAttrib4f(v654,v643,v644,v645,v646);
2269
- v655.x=v643;
2270
- v655.y=v644;
2271
- v655.z=v645;
2272
- v655.w=v646;
2273
- }
2274
- }
2275
- v657=v571["colorBuffer"];
2276
- v57.buffer=v657;
2277
- if(!(v57&&(typeof v57==="object"||typeof v57==="function")&&(v16(v57)||v8.getBuffer(v57)||v8.getBuffer(v57.buffer)||v16(v57.buffer)||("constant" in v57&&(typeof v57.constant==="number"||v17(v57.constant))))))g18.commandRaise(g193,g19);
2278
- v658=false;
2279
- v659=1;
2280
- v660=0;
2281
- v661=0;
2282
- v662=0;
2283
- v663=0;
2284
- v664=null;
2285
- v665=0;
2286
- v666=false;
2287
- v667=5126;
2288
- v668=0;
2289
- v669=0;
2290
- v670=0;
2291
- if(v16(v57)){
2292
- v658=true;
2293
- v664=v8.createStream(34962,v57);
2294
- v667=v664.dtype;
2295
- }
2296
- else{
2297
- v664=v8.getBuffer(v57);
2298
- if(v664){
2299
- v667=v664.dtype;
2300
- }
2301
- else if("constant" in v57){
2302
- v659=2;
2303
- if(typeof v57.constant === "number"){
2304
- v660=v57.constant;
2305
- v661=v662=v663=0;
2306
- }
2307
- else{
2308
- v660=v57.constant.length>0?v57.constant[0]:0;
2309
- v661=v57.constant.length>1?v57.constant[1]:0;
2310
- v662=v57.constant.length>2?v57.constant[2]:0;
2311
- v663=v57.constant.length>3?v57.constant[3]:0;
2312
- }
2313
- }
2314
- else{
2315
- if(v16(v57.buffer)){
2316
- v664=v8.createStream(34962,v57.buffer);
2317
- }
2318
- else{
2319
- v664=v8.getBuffer(v57.buffer);
2320
- }
2321
- v667="type" in v57?v49[v57.type]:v664.dtype;
2322
- v666=!!v57.normalized;
2323
- v665=v57.size|0;
2324
- v668=v57.offset|0;
2325
- v669=v57.stride|0;
2326
- v670=v57.divisor|0;
2327
- }
2328
- }
2329
- v671=g207.location;
2330
- v672=v10[v671];
2331
- if(v659===1){
2332
- if(!v672.buffer){
2333
- v1.enableVertexAttribArray(v671);
2334
- }
2335
- v673=v665||4;
2336
- if(v672.type!==v667||v672.size!==v673||v672.buffer!==v664||v672.normalized!==v666||v672.offset!==v668||v672.stride!==v669){
2337
- v1.bindBuffer(34962,v664.buffer);
2338
- v1.vertexAttribPointer(v671,v673,v667,v666,v669,v668);
2339
- v672.type=v667;
2340
- v672.size=v673;
2341
- v672.buffer=v664;
2342
- v672.normalized=v666;
2343
- v672.offset=v668;
2344
- v672.stride=v669;
2345
- }
2346
- if(v672.divisor!==v670){
2347
- v569.vertexAttribDivisorANGLE(v671,v670);
2348
- v672.divisor=v670;
2349
- }
2350
- }
2351
- else{
2352
- if(v672.buffer){
2353
- v1.disableVertexAttribArray(v671);
2354
- v672.buffer=null;
2355
- }
2356
- if(v672.x!==v660||v672.y!==v661||v672.z!==v662||v672.w!==v663){
2357
- v1.vertexAttrib4f(v671,v660,v661,v662,v663);
2358
- v672.x=v660;
2359
- v672.y=v661;
2360
- v672.z=v662;
2361
- v672.w=v663;
2362
- }
2363
- }
2364
- v674=v571["dashLength"];
2365
- if(!(typeof v674==="number"))g18.commandRaise(g220,g19);
2366
- if(!v570||v675!==v674){
2367
- v675=v674;
2368
- v1.uniform1f(g218.location,v674);
2369
- }
2370
- v676=v571["dashTexture"];
2371
- if(v676&&v676._reglType==="framebuffer"){
2372
- v676=v676.color[0];
2373
- }
2374
- if(!(typeof v676==="function"&&v676._reglType==="texture2d"))g18.commandRaise(g223,g19);
2375
- v677=v676._texture;
2376
- v1.uniform1i(g221.location,v677.bind());
2377
- v678=v571["depth"];
2378
- if(!(typeof v678==="number"))g18.commandRaise(g227,g19);
2379
- if(!v570||v679!==v678){
2380
- v679=v678;
2381
- v1.uniform1f(g225.location,v678);
2382
- }
2383
- v680=v571["opacity"];
2384
- if(!(typeof v680==="number"))g18.commandRaise(g230,g19);
2385
- if(!v570||v681!==v680){
2386
- v681=v680;
2387
- v1.uniform1f(g228.location,v680);
2388
- }
2389
- v682=v571["scale"];
2390
- if(!(v17(v682)&&v682.length===2))g18.commandRaise(g233,g19);
2391
- v683=v682[0];
2392
- v685=v682[1];
2393
- if(!v570||v684!==v683||v686!==v685){
2394
- v684=v683;
2395
- v686=v685;
2396
- v1.uniform2f(g231.location,v683,v685);
2397
- }
2398
- v687=v571["scaleFract"];
2399
- if(!(v17(v687)&&v687.length===2))g18.commandRaise(g238,g19);
2400
- v688=v687[0];
2401
- v690=v687[1];
2402
- if(!v570||v689!==v688||v691!==v690){
2403
- v689=v688;
2404
- v691=v690;
2405
- v1.uniform2f(g236.location,v688,v690);
2406
- }
2407
- v692=v571["thickness"];
2408
- if(!(typeof v692==="number"))g18.commandRaise(g243,g19);
2409
- if(!v570||v693!==v692){
2410
- v693=v692;
2411
- v1.uniform1f(g241.location,v692);
2412
- }
2413
- v694=v571["translate"];
2414
- if(!(v17(v694)&&v694.length===2))g18.commandRaise(g246,g19);
2415
- v695=v694[0];
2416
- v697=v694[1];
2417
- if(!v570||v696!==v695||v698!==v697){
2418
- v696=v695;
2419
- v698=v697;
2420
- v1.uniform2f(g244.location,v695,v697);
2421
- }
2422
- v699=v571["translateFract"];
2423
- if(!(v17(v699)&&v699.length===2))g18.commandRaise(g251,g19);
2424
- v700=v699[0];
2425
- v702=v699[1];
2426
- if(!v570||v701!==v700||v703!==v702){
2427
- v701=v700;
2428
- v703=v702;
2429
- v1.uniform2f(g249.location,v700,v702);
2430
- }
2431
- v704=g255.call(this,v2,v571,v570);
2432
- if(!(v17(v704)&&v704.length===4))g18.commandRaise(g257,g19);
2433
- v705=v704[0];
2434
- v707=v704[1];
2435
- v709=v704[2];
2436
- v711=v704[3];
2437
- if(!v570||v706!==v705||v708!==v707||v710!==v709||v712!==v711){
2438
- v706=v705;
2439
- v708=v707;
2440
- v710=v709;
2441
- v712=v711;
2442
- v1.uniform4f(g254.location,v705,v707,v709,v711);
2443
- }
2444
- v714=v571["count"];
2445
- if(v714>0){
2446
- if(v713){
2447
- v569.drawElementsInstancedANGLE(5,4,v713.type,0<<((v713.type-5121)>>1),v714);
2448
- }
2449
- else{
2450
- v569.drawArraysInstancedANGLE(5,0,4,v714);
2451
- }
2452
- }
2453
- else if(v714<0){
2454
- if(v713){
2455
- v1.drawElements(5,4,v713.type,0<<((v713.type-5121)>>1));
2456
- }
2457
- else{
2458
- v1.drawArrays(5,0,4);
2459
- }
2460
- }
2461
- v2.viewportWidth=v577;
2462
- v2.viewportHeight=v578;
2463
- if(v590){
2464
- v8.destroyStream(v596);
2465
- }
2466
- if(v607){
2467
- v8.destroyStream(v613);
2468
- }
2469
- if(v624){
2470
- v8.destroyStream(v630);
2471
- }
2472
- if(v641){
2473
- v8.destroyStream(v647);
2474
- }
2475
- if(v658){
2476
- v8.destroyStream(v664);
2477
- }
2478
- v677.unbind();
2479
- }
2480
- v5.dirty=true;
2481
- v11.setVAO(null);
2482
- if(v567){
2483
- g52.cpuTime+=performance.now()-v568;
2484
- }
2485
- }
2486
- ,}
2487
-
2488
- }