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

Function U

assets/js/nebula-js/three.min.js:212–213  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

210b,c,d){this.data=a;this.itemSize=b;this.offset=c;this.normalized=!0===d}function nb(a){Q.call(this);this.type="SpriteMaterial";this.color=new A(16777215);this.map=null;this.rotation=0;this.sizeAttenuation=!0;this.lights=!1;this.transparent=!0;this.setValues(a)}function Lc(a){D.call(this);this.type="Sprite";if(void 0===Yb){Yb=new B;var b=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);b=new Ab(b,5);Yb.setIndex([0,1,2,0,2,3]);Yb.addAttribute("position",new Kc(b,3,0,!1));Yb.addAttribute("uv",
211new Kc(b,2,3,!1))}this.geometry=Yb;this.material=void 0!==a?a:new nb;this.center=new C(.5,.5)}function Mc(){D.call(this);this.type="LOD";Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function Nc(a,b){a&&a.isGeometry&&console.error("THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");qa.call(this,a,b);this.type="SkinnedMesh";this.bindMode="attached";this.bindMatrix=new P;this.bindMatrixInverse=new P}function Dd(a,b){a=a||[];this.bones=a.slice(0);
212this.boneMatrices=new Float32Array(16*this.bones.length);if(void 0===b)this.calculateInverses();else if(this.bones.length===b.length)this.boneInverses=b.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],a=0,b=this.bones.length;a<b;a++)this.boneInverses.push(new P)}function ke(){D.call(this);this.type="Bone"}function U(a){Q.call(this);this.type="LineBasicMaterial";this.color=new A(16777215);this.linewidth=1;this.linejoin=this.linecap="round";this.lights=
213!1;this.setValues(a)}function ka(a,b,c){1===c&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead.");D.call(this);this.type="Line";this.geometry=void 0!==a?a:new B;this.material=void 0!==b?b:new U({color:16777215*Math.random()})}function V(a,b){ka.call(this,a,b);this.type="LineSegments"}function Ed(a,b){ka.call(this,a,b);this.type="LineLoop"}function Ia(a){Q.call(this);this.type="PointsMaterial";this.color=new A(16777215);this.map=null;this.size=
2141;this.sizeAttenuation=!0;this.lights=this.morphTargets=!1;this.setValues(a)}function Zb(a,b){D.call(this);this.type="Points";this.geometry=void 0!==a?a:new B;this.material=void 0!==b?b:new Ia({color:16777215*Math.random()})}function le(a,b,c,d,e,f,g,h,l){Y.call(this,a,b,c,d,e,f,g,h,l);this.format=void 0!==g?g:1022;this.minFilter=void 0!==f?f:1006;this.magFilter=void 0!==e?e:1006;this.generateMipmaps=!1}function $b(a,b,c,d,e,f,g,h,l,m,q,p){Y.call(this,null,f,g,h,l,m,d,e,q,p);this.image={width:b,height:c};
215this.mipmaps=a;this.generateMipmaps=this.flipY=!1}function Oc(a,b,c,d,e,f,g,h,l){Y.call(this,a,b,c,d,e,f,g,h,l);this.needsUpdate=!0}function Pc(a,b,c,d,e,f,g,h,l,m){m=void 0!==m?m:1026;if(1026!==m&&1027!==m)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===c&&1026===m&&(c=1012);void 0===c&&1027===m&&(c=1020);Y.call(this,null,d,e,f,g,h,m,c,l);this.image={width:a,height:b};this.magFilter=void 0!==g?g:1003;this.minFilter=void 0!==h?h:1003;this.generateMipmaps=
216this.flipY=!1}function ac(a){B.call(this);this.type="WireframeGeometry";var b=[],c,d,e,f=[0,0],g={},h=["a","b","c"];if(a&&a.isGeometry){var l=a.faces;var m=0;for(d=l.length;m<d;m++){var q=l[m];for(c=0;3>c;c++){var p=q[h[c]];var k=q[h[(c+1)%3]];f[0]=Math.min(p,k);f[1]=Math.max(p,k);p=f[0]+","+f[1];void 0===g[p]&&(g[p]={index1:f[0],index2:f[1]})}}for(p in g)m=g[p],h=a.vertices[m.index1],b.push(h.x,h.y,h.z),h=a.vertices[m.index2],b.push(h.x,h.y,h.z)}else if(a&&a.isBufferGeometry)if(h=new n,null!==a.index){l=

Callers 2

tFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected