瀏覽代碼

Updated builds.

Mr.doob 7 年之前
父節點
當前提交
f173b20dde
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      build/three.js
  2. 1 1
      build/three.min.js
  3. 1 1
      build/three.module.js

+ 1 - 1
build/three.js

@@ -22005,7 +22005,7 @@
 
 						controller.matrix.elements = inputPose.pointerMatrix;
 						controller.matrix.decompose( controller.position, controller.rotation, controller.scale );
-						controller.visible = inputPose.emulatedPosition === false;
+						controller.visible = true;
 
 						continue;
 

+ 1 - 1
build/three.min.js

@@ -153,7 +153,7 @@ function(){b()&&e.submitFrame()};this.dispose=function(){"undefined"!==typeof wi
 h=null,l=null,n=null,y=[],m=[],t=new ba;t.layers.enable(1);t.viewport=new V;var q=new ba;q.layers.enable(2);q.viewport=new V;var k=new Ic([t,q]);k.layers.enable(1);k.layers.enable(2);this.enabled=!1;this.getController=function(a){var b=y[a];void 0===b&&(b=new Wb,b.matrixAutoUpdate=!1,b.visible=!1,y[a]=b);return b};this.getDevice=function(){return g};this.setDevice=function(a){void 0!==a&&(g=a);f.setCompatibleXRDevice(a)};this.setSession=function(b,e){h=b;null!==h&&(h.addEventListener("select",c),
 h.addEventListener("selectstart",c),h.addEventListener("selectend",c),h.addEventListener("end",d),h.baseLayer=new XRWebGLLayer(h,f),h.requestFrameOfReference(e.frameOfReferenceType).then(function(b){l=b;a.setFramebuffer(h.baseLayer.framebuffer);p.setContext(h);p.start()}),m=h.getInputSources(),h.addEventListener("inputsourceschange",function(){m=h.getInputSources();console.log(m)}))};this.getCamera=function(a){if(b()){var c=a.parent,d=k.cameras;e(k,c);for(var f=0;f<d.length;f++)e(d[f],c);a.matrixWorld.copy(k.matrixWorld);
 a=a.children;f=0;for(c=a.length;f<c;f++)a[f].updateMatrixWorld(!0);return k}return a};this.isPresenting=b;var u=null,p=new Vd;p.setAnimationLoop(function(a,b){n=b.getDevicePose(l);if(null!==n)for(var c=h.baseLayer,d=b.views,e=0;e<d.length;e++){var f=d[e],g=c.getViewport(f),t=n.getViewMatrix(f),q=k.cameras[e];q.matrix.fromArray(t).getInverse(q.matrix);q.projectionMatrix.fromArray(f.projectionMatrix);q.viewport.set(g.x,g.y,g.width,g.height);0===e&&(k.matrix.copy(q.matrix),k.projectionMatrix.copy(q.projectionMatrix))}for(e=
-0;e<y.length;e++){c=y[e];if(d=m[e])if(d=b.getInputPose(d,l),null!==d){c.matrix.elements=d.pointerMatrix;c.matrix.decompose(c.position,c.rotation,c.scale);c.visible=!1===d.emulatedPosition;continue}c.visible=!1}u&&u(a)});this.setAnimationLoop=function(a){u=a};this.dispose=function(){};this.getStandingMatrix=function(){console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed.");return new THREE.Matrix4};this.submitFrame=function(){}}function $d(a){function b(){ka=new Of(F);ka.get("WEBGL_depth_texture");
+0;e<y.length;e++){c=y[e];if(d=m[e])if(d=b.getInputPose(d,l),null!==d){c.matrix.elements=d.pointerMatrix;c.matrix.decompose(c.position,c.rotation,c.scale);c.visible=!0;continue}c.visible=!1}u&&u(a)});this.setAnimationLoop=function(a){u=a};this.dispose=function(){};this.getStandingMatrix=function(){console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed.");return new THREE.Matrix4};this.submitFrame=function(){}}function $d(a){function b(){ka=new Of(F);ka.get("WEBGL_depth_texture");
 ka.get("OES_texture_float");ka.get("OES_texture_float_linear");ka.get("OES_texture_half_float");ka.get("OES_texture_half_float_linear");ka.get("OES_standard_derivatives");ka.get("OES_element_index_uint");ka.get("ANGLE_instanced_arrays");ha=new $e(F,ka);Sa=new Mf(F,ka,a);Y=new Kg(F,ka,ha);Y.scissor(W.copy(N).multiplyScalar(aa));Y.viewport(gb.copy(ea).multiplyScalar(aa));kb=new Rf(F);Ba=new zg;lb=new Lg(F,ka,Y,Ba,Sa,ha,kb);oa=new Ff(F);ta=new Pf(F,oa,kb);pa=new Uf(ta,kb);wa=new Tf(F);ma=new yg(z,ka,
 Sa);sa=new Dg;qa=new Ig;ja=new Kf(z,Y,pa,D);xa=new Lf(F,ka,kb);ya=new Qf(F,ka,kb);za=new Jg(z,F,Y,lb,Sa);kb.programs=ma.programs;z.context=F;z.capabilities=Sa;z.extensions=ka;z.properties=Ba;z.renderLists=sa;z.state=Y;z.info=kb}function c(a){a.preventDefault();console.log("THREE.WebGLRenderer: Context Lost.");G=!0}function d(){console.log("THREE.WebGLRenderer: Context Restored.");G=!1;b()}function e(a){a=a.target;a.removeEventListener("dispose",e);f(a);Ba.remove(a)}function f(a){var b=Ba.get(a).program;
 a.program=void 0;void 0!==b&&ma.releaseProgram(b)}function g(a,b,c){a.render(function(a){z.renderBufferImmediate(a,b,c)})}function h(a,b,c){if(!1!==a.visible){if(a.layers.test(b.layers))if(a.isLight)A.pushLight(a),a.castShadow&&A.pushShadow(a);else if(a.isSprite)a.frustumCulled&&!da.intersectsSprite(a)||A.pushSprite(a);else if(a.isImmediateRenderObject)c&&Vb.setFromMatrixPosition(a.matrixWorld).applyMatrix4(fa),K.push(a,null,a.material,Vb.z,null);else if(a.isMesh||a.isLine||a.isPoints)if(a.isSkinnedMesh&&

+ 1 - 1
build/three.module.js

@@ -21999,7 +21999,7 @@ function WebXRManager( renderer ) {
 
 					controller.matrix.elements = inputPose.pointerMatrix;
 					controller.matrix.decompose( controller.position, controller.rotation, controller.scale );
-					controller.visible = inputPose.emulatedPosition === false;
+					controller.visible = true;
 
 					continue;