MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / q

Function q

assets/js/space-wrap.js:106–107  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

104a.bindTexture(b,f);a.texParameteri(b,10241,9728);a.texParameteri(b,10240,9728);for(b=0;b<d;b++)a.texImage2D(c+b,0,6408,1,1,0,6408,5121,e);return f}function f(c,e){z[c]=1;0===x[c]&&(a.enableVertexAttribArray(c),x[c]=1);y[c]!==e&&((d.isWebGL2?a:b.get("ANGLE_instanced_arrays"))[d.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](c,e),y[c]=e)}function g(b){!0!==F[b]&&(a.enable(b),F[b]=!0)}function h(b){!1!==F[b]&&(a.disable(b),F[b]=!1)}function l(b,d,e,f,l,m,q,p){if(0===b)pa&&(h(3042),pa=!1);
105else if(pa||(g(3042),pa=!0),5!==b){if(b!==I||p!==ha){if(100!==C||100!==D)a.blendEquation(32774),D=C=100;if(p)switch(b){case 1:a.blendFuncSeparate(1,771,1,771);break;case 2:a.blendFunc(1,1);break;case 3:a.blendFuncSeparate(0,0,769,771);break;case 4:a.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",b)}else switch(b){case 1:a.blendFuncSeparate(770,771,1,771);break;case 2:a.blendFunc(770,1);break;case 3:a.blendFunc(0,769);break;case 4:a.blendFunc(0,768);
106break;default:console.error("THREE.WebGLState: Invalid blending: ",b)}J=B=fe=E=null;I=b;ha=p}}else{l=l||d;m=m||e;q=q||f;if(d!==C||l!==D)a.blendEquationSeparate(c.convert(d),c.convert(l)),C=d,D=l;if(e!==E||f!==fe||m!==B||q!==J)a.blendFuncSeparate(c.convert(e),c.convert(f),c.convert(m),c.convert(q)),E=e,fe=f,B=m,J=q;I=b;ha=null}}function m(b){S!==b&&(b?a.frontFace(2304):a.frontFace(2305),S=b)}function q(b){0!==b?(g(2884),b!==ge&&(1===b?a.cullFace(1029):2===b?a.cullFace(1028):a.cullFace(1032))):h(2884);
107ge=b}function p(b,c,d){if(b){if(g(32823),bb!==c||sf!==d)a.polygonOffset(c,d),bb=c,sf=d}else h(32823)}function v(b){void 0===b&&(b=33984+A-1);P!==b&&(a.activeTexture(b),P=b)}var k=new function(){var b=!1,c=new W,d=null,e=new W(0,0,0,0);return{setMask:function(c){d===c||b||(a.colorMask(c,c,c,c),d=c)},setLocked:function(a){b=a},setClear:function(b,d,f,g,h){!0===h&&(b*=g,d*=g,f*=g);c.set(b,d,f,g);!1===e.equals(c)&&(a.clearColor(b,d,f,g),e.copy(c))},reset:function(){b=!1;d=null;e.set(-1,0,0,0)}}},r=new function(){var b=
108!1,c=null,d=null,e=null;return{setTest:function(a){a?g(2929):h(2929)},setMask:function(d){c===d||b||(a.depthMask(d),c=d)},setFunc:function(b){if(d!==b){if(b)switch(b){case 0:a.depthFunc(512);break;case 1:a.depthFunc(519);break;case 2:a.depthFunc(513);break;case 3:a.depthFunc(515);break;case 4:a.depthFunc(514);break;case 5:a.depthFunc(518);break;case 6:a.depthFunc(516);break;case 7:a.depthFunc(517);break;default:a.depthFunc(515)}else a.depthFunc(515);d=b}},setLocked:function(a){b=a},setClear:function(b){e!==
109b&&(a.clearDepth(b),e=b)},reset:function(){b=!1;e=d=c=null}}},u=new function(){var b=!1,c=null,d=null,e=null,f=null,l=null,m=null,q=null,p=null;return{setTest:function(a){a?g(2960):h(2960)},setMask:function(d){c===d||b||(a.stencilMask(d),c=d)},setFunc:function(b,c,g){if(d!==b||e!==c||f!==g)a.stencilFunc(b,c,g),d=b,e=c,f=g},setOp:function(b,c,d){if(l!==b||m!==c||q!==d)a.stencilOp(b,c,d),l=b,m=c,q=d},setLocked:function(a){b=a},setClear:function(b){p!==b&&(a.clearStencil(b),p=b)},reset:function(){b=
110!1;p=q=m=l=f=e=d=c=null}}},n=a.getParameter(34921),z=new Uint8Array(n),x=new Uint8Array(n),y=new Uint8Array(n),F={},G=null,ua=null,pa=null,I=null,C=null,E=null,fe=null,D=null,B=null,J=null,ha=!1,S=null,ge=null,xb=null,bb=null,sf=null,A=a.getParameter(35661),M=!1;n=0;n=a.getParameter(7938);-1!==n.indexOf("WebGL")?(n=parseFloat(/^WebGL ([0-9])/.exec(n)[1]),M=1<=n):-1!==n.indexOf("OpenGL ES")&&(n=parseFloat(/^OpenGL ES ([0-9])/.exec(n)[1]),M=2<=n);var P=null,K={},O=new W,Q=new W,L={};L[3553]=e(3553,

Callers 5

ehFunction · 0.70
zFunction · 0.70
GFunction · 0.70
fhFunction · 0.70
mFunction · 0.70

Calls 3

gFunction · 0.70
hFunction · 0.70
kFunction · 0.70

Tested by

no test coverage detected