a,"can't be added as a child of itself."),this;ainstanceofTHREE.Object3D?(void0!==a.parent&&a.parent.remove(a),a.parent=this,a.dispatchEvent({type:"added"}),this.children.push(a)):console.error("THREE.Object3D.add:",a,"is not an instance of THREE.Object3D.");returnthis},remove:function(a){if(1<arguments.length)for(varb=0;b<arguments.length;b++)this.remove(arguments[b]);b=this.children.indexOf(a);-1!==b&&(a.parent=void0,a.dispatchEvent({type:"removed"}),this.children.splice(b,1))},getChildByName:function(a,
b){console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().");returnthis.getObjectByName(a,b)},getObjectById:function(a,b){if(this.id===a)returnthis;for(varc=0,d=this.children.length;c<d;c++){vare=this.children[c].getObjectById(a,b);if(void0!==e)returne}},getObjectByName:function(a,b){if(this.name===a)returnthis;for(varc=0,d=this.children.length;c<d;c++){vare=this.children[c].getObjectByName(a,b);if(void0!==e)returne}},getWorldPosition:function(a){a=a||newTHREE.Vector3;
THREE.Projector=function(){console.warn("THREE.Projector has been moved to /examples/renderers/Projector.js.");this.projectVector=function(a,b){console.warn("THREE.Projector: .projectVector() is now vector.project().");a.project(b)};this.unprojectVector=function(a,b){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject().");a.unproject(b)};this.pickingRay=function(a,b){console.error("THREE.Projector: .pickingRay() has been removed.")}};
b;a.spotLightPosition.needsUpdate=b;a.spotLightDistance.needsUpdate=b;a.spotLightDirection.needsUpdate=b;a.spotLightAngleCos.needsUpdate=b;a.spotLightExponent.needsUpdate=b;a.hemisphereLightSkyColor.needsUpdate=b;a.hemisphereLightGroundColor.needsUpdate=b;a.hemisphereLightDirection.needsUpdate=b}functionE(){vara=Ob;a>=Oc&&console.warn("WebGLRenderer: trying to use "+a+" texture units while this GPU supports only "+Oc);Ob+=1;returna}functionB(a,b){a._modelViewMatrix.multiplyMatrices(b.matrixWorldInverse,
}catch(b){console.error(b)}qb=l.getExtension("OES_texture_float");l.getExtension("OES_texture_float_linear");null===qb&&console.log("THREE.WebGLRenderer: Float textures not supported.");Rb=l.getExtension("OES_standard_derivatives");null===Rb&&console.log("THREE.WebGLRenderer: Standard derivatives not supported.");nb=l.getExtension("EXT_texture_filter_anisotropic")||l.getExtension("MOZ_EXT_texture_filter_anisotropic")||l.getExtension("WEBKIT_EXT_texture_filter_anisotropic");null===nb&&console.log("THREE.WebGLRenderer: Anisotropic texture filtering not supported.");
Ha=l.getExtension("WEBGL_compressed_texture_s3tc")||l.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||l.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");null===Ha&&console.log("THREE.WebGLRenderer: S3TC compressed textures not supported.");Ia=l.getExtension("WEBGL_compressed_texture_pvrtc")||l.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");null===Ia&&console.log("THREE.WebGLRenderer: PVRTC compressed textures not supported.");Gb=l.getExtension("OES_element_index_uint");null===Gb&&console.log("THREE.WebGLRenderer: elementindex as unsigned integer not supported.");
}catch(b){console.error(b)}qb=l.getExtension("OES_texture_float");l.getExtension("OES_texture_float_linear");null===qb&&console.log("THREE.WebGLRenderer: Float textures not supported.");Gb=l.getExtension("OES_standard_derivatives");null===Gb&&console.log("THREE.WebGLRenderer: Standard derivatives not supported.");nb=l.getExtension("EXT_texture_filter_anisotropic")||l.getExtension("MOZ_EXT_texture_filter_anisotropic")||l.getExtension("WEBKIT_EXT_texture_filter_anisotropic");null===nb&&console.log("THREE.WebGLRenderer: Anisotropic texture filtering not supported.");
Ha=l.getExtension("WEBGL_compressed_texture_s3tc")||l.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||l.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");null===Ha&&console.log("THREE.WebGLRenderer: S3TC compressed textures not supported.");Ia=l.getExtension("WEBGL_compressed_texture_pvrtc")||l.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");null===Ia&&console.log("THREE.WebGLRenderer: PVRTC compressed textures not supported.");Hb=l.getExtension("OES_element_index_uint");null===Hb&&console.log("THREE.WebGLRenderer: elementindex as unsigned integer not supported.");
hb=l.getExtension("EXT_blend_minmax");null===hb&&console.log("THREE.WebGLRenderer: min max blend equations not supported.");void0===l.getShaderPrecisionFormat&&(l.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}});Pa&&l.getExtension("EXT_frag_depth")})();l.clearColor(0,0,0,1);l.clearDepth(1);l.clearStencil(0);l.enable(l.DEPTH_TEST);l.depthFunc(l.LEQUAL);l.frontFace(l.CCW);l.cullFace(l.BACK);l.enable(l.CULL_FACE);l.enable(l.BLEND);l.blendEquation(l.FUNC_ADD);l.blendFunc(l.SRC_ALPHA,
l.HIGH_FLOAT),bd=l.getShaderPrecisionFormat(l.VERTEX_SHADER,l.MEDIUM_FLOAT);l.getShaderPrecisionFormat(l.VERTEX_SHADER,l.LOW_FLOAT);varcd=l.getShaderPrecisionFormat(l.FRAGMENT_SHADER,l.HIGH_FLOAT),dd=l.getShaderPrecisionFormat(l.FRAGMENT_SHADER,l.MEDIUM_FLOAT);l.getShaderPrecisionFormat(l.FRAGMENT_SHADER,l.LOW_FLOAT);vared=0<ad.precision&&0<cd.precision,Vc=0<bd.precision&&0<dd.precision;"highp"!==Y||ed||(Vc?(Y="mediump",console.warn("THREE.WebGLRenderer: highp not supported, using mediump.")):(Y=
"lowp",console.warn("THREE.WebGLRenderer: highp and mediump not supported, using lowp.")));"mediump"!==Y||Vc||(Y="lowp",console.warn("THREE.WebGLRenderer: mediump not supported, using lowp."));this.getContext=function(){returnl};this.supportsVertexTextures=function(){returngc};this.supportsFloatTextures=function(){returnqb};this.supportsStandardDerivatives=function(){returnRb};this.supportsCompressedTextureS3TC=function(){returnHa};this.supportsCompressedTexturePVRTC=function(){returnIa};this.supportsBlendMinMax=
"lowp",console.warn("THREE.WebGLRenderer: highp and mediump not supported, using lowp.")));"mediump"!==Y||Vc||(Y="lowp",console.warn("THREE.WebGLRenderer: mediump not supported, using lowp."));this.getContext=function(){returnl};this.supportsVertexTextures=function(){returngc};this.supportsFloatTextures=function(){returnqb};this.supportsStandardDerivatives=function(){returnGb};this.supportsCompressedTextureS3TC=function(){returnHa};this.supportsCompressedTexturePVRTC=function(){returnIa};this.supportsBlendMinMax=
b*this.devicePixelRatio,c*this.devicePixelRatio,d*this.devicePixelRatio)};this.enableScissorTest=function(a){a?l.enable(l.SCISSOR_TEST):l.disable(l.SCISSOR_TEST)};this.setClearColor=function(a,b){S.set(a);Ka=void0!==b?b:1;l.clearColor(S.r,S.g,S.b,Ka)};this.setClearColorHex=function(a,b){console.warn("THREE.WebGLRenderer: .setClearColorHex() is being removed. Use .setClearColor() instead.");this.setClearColor(a,b)};this.getClearColor=function(){returnS};this.getClearAlpha=function(){returnKa};this.clear=
k.type===THREE.LineStrip?l.LINE_STRIP:l.LINES,Q(d.linewidth),l.drawArrays(k,0,e.__webglLineCount),H.info.render.calls++):kinstanceofTHREE.PointCloud&&(l.drawArrays(l.POINTS,0,e.__webglParticleCount),H.info.render.calls++,H.info.render.points+=e.__webglParticleCount)}};this.render=function(a,b,c,d){if(!1===binstanceofTHREE.Camera)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else{vare,f,g,h=a.fog;zb=-1;Yb=null;hc=!0;!0===a.autoUpdate&&a.updateMatrixWorld();
Da,h,!0,d),s(Ja,"transparent",b,Da,h,!0,d));t(this.renderPluginsPost,a,b);c&&c.generateMipmaps&&c.minFilter!==THREE.NearestFilter&&c.minFilter!==THREE.LinearFilter&&U(c);this.setDepthTest(!0);this.setDepthWrite(!0)}};this.renderImmediateObject=function(a,b,c,d,e){varf=x(a,b,c,d,e);Oa=-1;H.setMaterialFaces(d);e.immediateRenderCallback?e.immediateRenderCallback(f,l,Cc):e.render(function(a){H.renderBufferImmediate(a,f,d)})};varIb={},Kc=0;this.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")};
Da,h,!0,d),s(Ja,"transparent",b,Da,h,!0,d));t(this.renderPluginsPost,a,b);c&&c.generateMipmaps&&c.minFilter!==THREE.NearestFilter&&c.minFilter!==THREE.LinearFilter&&U(c);this.setDepthTest(!0);this.setDepthWrite(!0)}};this.renderImmediateObject=function(a,b,c,d,e){varf=x(a,b,c,d,e);Oa=-1;H.setMaterialFaces(d);e.immediateRenderCallback?e.immediateRenderCallback(f,l,Cc):e.render(function(a){H.renderBufferImmediate(a,f,d)})};vartb={},Kc=0;this.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")};