|
@@ -347,7 +347,7 @@ THREE.SrcColorFactor)return k.SRC_COLOR;if(a===THREE.OneMinusSrcColorFactor)retu
|
|
if(void 0!==ub){if(a===THREE.RGB_S3TC_DXT1_Format)return ub.COMPRESSED_RGB_S3TC_DXT1_EXT;if(a===THREE.RGBA_S3TC_DXT1_Format)return ub.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(a===THREE.RGBA_S3TC_DXT3_Format)return ub.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(a===THREE.RGBA_S3TC_DXT5_Format)return ub.COMPRESSED_RGBA_S3TC_DXT5_EXT}return 0}console.log("THREE.WebGLRenderer",THREE.REVISION);var a=a||{},T=void 0!==a.canvas?a.canvas:document.createElement("canvas"),O=void 0!==a.precision?a.precision:"highp",ea=void 0!==
|
|
if(void 0!==ub){if(a===THREE.RGB_S3TC_DXT1_Format)return ub.COMPRESSED_RGB_S3TC_DXT1_EXT;if(a===THREE.RGBA_S3TC_DXT1_Format)return ub.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(a===THREE.RGBA_S3TC_DXT3_Format)return ub.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(a===THREE.RGBA_S3TC_DXT5_Format)return ub.COMPRESSED_RGBA_S3TC_DXT5_EXT}return 0}console.log("THREE.WebGLRenderer",THREE.REVISION);var a=a||{},T=void 0!==a.canvas?a.canvas:document.createElement("canvas"),O=void 0!==a.precision?a.precision:"highp",ea=void 0!==
|
|
a.alpha?a.alpha:!0,da=void 0!==a.premultipliedAlpha?a.premultipliedAlpha:!0,P=void 0!==a.antialias?a.antialias:!1,ja=void 0!==a.stencil?a.stencil:!0,Ma=void 0!==a.preserveDrawingBuffer?a.preserveDrawingBuffer:!1,oa=void 0!==a.clearColor?new THREE.Color(a.clearColor):new THREE.Color(0),Ha=void 0!==a.clearAlpha?a.clearAlpha:0;this.domElement=T;this.context=null;this.autoUpdateScene=this.autoUpdateObjects=this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0;
|
|
a.alpha?a.alpha:!0,da=void 0!==a.premultipliedAlpha?a.premultipliedAlpha:!0,P=void 0!==a.antialias?a.antialias:!1,ja=void 0!==a.stencil?a.stencil:!0,Ma=void 0!==a.preserveDrawingBuffer?a.preserveDrawingBuffer:!1,oa=void 0!==a.clearColor?new THREE.Color(a.clearColor):new THREE.Color(0),Ha=void 0!==a.clearAlpha?a.clearAlpha:0;this.domElement=T;this.context=null;this.autoUpdateScene=this.autoUpdateObjects=this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0;
|
|
this.shadowMapEnabled=this.physicallyBasedShading=this.gammaOutput=this.gammaInput=!1;this.shadowMapSoft=this.shadowMapAutoUpdate=!0;this.shadowMapCullFace=THREE.CullFaceFront;this.shadowMapCascade=this.shadowMapDebug=!1;this.maxMorphTargets=8;this.maxMorphNormals=4;this.autoScaleCubemaps=!0;this.renderPluginsPre=[];this.renderPluginsPost=[];this.info={memory:{programs:0,geometries:0,textures:0},render:{calls:0,vertices:0,faces:0,points:0}};var I=this,Z=[],ba=0,Q=null,ga=null,Y=-1,$=null,na=null,
|
|
this.shadowMapEnabled=this.physicallyBasedShading=this.gammaOutput=this.gammaInput=!1;this.shadowMapSoft=this.shadowMapAutoUpdate=!0;this.shadowMapCullFace=THREE.CullFaceFront;this.shadowMapCascade=this.shadowMapDebug=!1;this.maxMorphTargets=8;this.maxMorphNormals=4;this.autoScaleCubemaps=!0;this.renderPluginsPre=[];this.renderPluginsPost=[];this.info={memory:{programs:0,geometries:0,textures:0},render:{calls:0,vertices:0,faces:0,points:0}};var I=this,Z=[],ba=0,Q=null,ga=null,Y=-1,$=null,na=null,
|
|
-gb=0,ta=0,ma=-1,ia=-1,$a=-1,Cb=-1,ab=-1,rb=-1,sb=-1,nb=-1,$b=null,ob=null,Ta=null,Aa=null,pb=0,Ia=0,hb=0,Wa=0,ua=0,tb=0,eb={},vb=new THREE.Frustum,ya=new THREE.Matrix4,cb=new THREE.Matrix4,Xa=new THREE.Vector4,bb=new THREE.Vector3,Db=!0,wc={ambient:[0,0,0],directional:{length:0,colors:[],positions:[]},point:{length:0,colors:[],positions:[],distances:[]},spot:{length:0,colors:[],positions:[],distances:[],directions:[],anglesCos:[],exponents:[]},hemi:{length:0,skyColors:[],groundColors:[],positions:[]}},
|
|
|
|
|
|
+gb=0,ta=0,ma=-1,ia=-1,$a=-1,Cb=-1,ab=-1,rb=-1,sb=-1,nb=-1,$b=null,ob=null,Ta=null,Aa=null,pb=0,Ia=0,hb=0,Wa=0,ua=0,tb=0,eb={},vb=new THREE.Frustum,ya=new THREE.Matrix4,cb=new THREE.Matrix4,Xa=new THREE.Vector3,bb=new THREE.Vector3,Db=!0,wc={ambient:[0,0,0],directional:{length:0,colors:[],positions:[]},point:{length:0,colors:[],positions:[],distances:[]},spot:{length:0,colors:[],positions:[],distances:[],directions:[],anglesCos:[],exponents:[]},hemi:{length:0,skyColors:[],groundColors:[],positions:[]}},
|
|
k,Eb,ub;try{if(!(k=T.getContext("experimental-webgl",{alpha:ea,premultipliedAlpha:da,antialias:P,stencil:ja,preserveDrawingBuffer:Ma})))throw"Error creating WebGL context.";}catch(Oc){console.error(Oc)}a=k.getExtension("OES_texture_float");ea=k.getExtension("OES_standard_derivatives");Eb=k.getExtension("EXT_texture_filter_anisotropic")||k.getExtension("MOZ_EXT_texture_filter_anisotropic")||k.getExtension("WEBKIT_EXT_texture_filter_anisotropic");ub=k.getExtension("WEBGL_compressed_texture_s3tc")||
|
|
k,Eb,ub;try{if(!(k=T.getContext("experimental-webgl",{alpha:ea,premultipliedAlpha:da,antialias:P,stencil:ja,preserveDrawingBuffer:Ma})))throw"Error creating WebGL context.";}catch(Oc){console.error(Oc)}a=k.getExtension("OES_texture_float");ea=k.getExtension("OES_standard_derivatives");Eb=k.getExtension("EXT_texture_filter_anisotropic")||k.getExtension("MOZ_EXT_texture_filter_anisotropic")||k.getExtension("WEBKIT_EXT_texture_filter_anisotropic");ub=k.getExtension("WEBGL_compressed_texture_s3tc")||
|
|
k.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||k.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");a||console.log("THREE.WebGLRenderer: Float textures not supported.");ea||console.log("THREE.WebGLRenderer: Standard derivatives not supported.");Eb||console.log("THREE.WebGLRenderer: Anisotropic texture filtering not supported.");ub||console.log("THREE.WebGLRenderer: S3TC compressed textures not supported.");k.clearColor(0,0,0,1);k.clearDepth(1);k.clearStencil(0);k.enable(k.DEPTH_TEST);k.depthFunc(k.LEQUAL);
|
|
k.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||k.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");a||console.log("THREE.WebGLRenderer: Float textures not supported.");ea||console.log("THREE.WebGLRenderer: Standard derivatives not supported.");Eb||console.log("THREE.WebGLRenderer: Anisotropic texture filtering not supported.");ub||console.log("THREE.WebGLRenderer: S3TC compressed textures not supported.");k.clearColor(0,0,0,1);k.clearDepth(1);k.clearStencil(0);k.enable(k.DEPTH_TEST);k.depthFunc(k.LEQUAL);
|
|
k.frontFace(k.CCW);k.cullFace(k.BACK);k.enable(k.CULL_FACE);k.enable(k.BLEND);k.blendEquation(k.FUNC_ADD);k.blendFunc(k.SRC_ALPHA,k.ONE_MINUS_SRC_ALPHA);k.clearColor(oa.r,oa.g,oa.b,Ha);this.context=k;var xc=k.getParameter(k.MAX_TEXTURE_IMAGE_UNITS),ea=k.getParameter(k.MAX_VERTEX_TEXTURE_IMAGE_UNITS);k.getParameter(k.MAX_TEXTURE_SIZE);var Pc=k.getParameter(k.MAX_CUBE_MAP_TEXTURE_SIZE),nc=Eb?k.getParameter(Eb.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0,hc=0<ea,Na=hc&&a;ub&&k.getParameter(k.COMPRESSED_TEXTURE_FORMATS);
|
|
k.frontFace(k.CCW);k.cullFace(k.BACK);k.enable(k.CULL_FACE);k.enable(k.BLEND);k.blendEquation(k.FUNC_ADD);k.blendFunc(k.SRC_ALPHA,k.ONE_MINUS_SRC_ALPHA);k.clearColor(oa.r,oa.g,oa.b,Ha);this.context=k;var xc=k.getParameter(k.MAX_TEXTURE_IMAGE_UNITS),ea=k.getParameter(k.MAX_VERTEX_TEXTURE_IMAGE_UNITS);k.getParameter(k.MAX_TEXTURE_SIZE);var Pc=k.getParameter(k.MAX_CUBE_MAP_TEXTURE_SIZE),nc=Eb?k.getParameter(Eb.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0,hc=0<ea,Na=hc&&a;ub&&k.getParameter(k.COMPRESSED_TEXTURE_FORMATS);
|