Fa=H(ga.format),Hb=H(ga.type);y(t.TEXTURE_CUBE_MAP,ga,Wb);for(ia=0;6>ia;ia++)if(Ub)for(varOa,Xb=Na[ia].mipmaps,cb=0,bc=Xb.length;cb<bc;cb++)Oa=Xb[cb],ga.format!==THREE.RGBAFormat&&ga.format!==THREE.RGBFormat?-1<Yb().indexOf(Fa)?N.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+ia,cb,Fa,Oa.width,Oa.height,0,Oa.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setCubeTexture()"):N.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+ia,cb,Fa,Oa.width,Oa.height,
b;a.spotLightExponent.needsUpdate=b;a.spotLightDecay.needsUpdate=b;a.hemisphereLightSkyColor.needsUpdate=b;a.hemisphereLightGroundColor.needsUpdate=b;a.hemisphereLightDirection.needsUpdate=b}functionv(){vara=fb;a>=db&&console.warn("WebGLRenderer: trying to use "+a+" texture units while this GPU supports only "+db);fb+=1;returna}functionz(a,b,c,d){a[b+0]=c.r*d;a[b+1]=c.g*d;a[b+2]=c.b*d}functiony(a,b,c){c?(t.texParameteri(a,t.TEXTURE_WRAP_S,H(b.wrapS)),t.texParameteri(a,t.TEXTURE_WRAP_T,H(b.wrapT)),
t.texParameteri(a,t.TEXTURE_MAG_FILTER,H(b.magFilter)),t.texParameteri(a,t.TEXTURE_MIN_FILTER,H(b.minFilter))):(t.texParameteri(a,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(a,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),b.wrapS===THREE.ClampToEdgeWrapping&&b.wrapT===THREE.ClampToEdgeWrapping||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping. ( "+b.sourceFile+" )"),t.texParameteri(a,t.TEXTURE_MAG_FILTER,B(b.magFilter)),