|
|
@@ -1,11 +1,11 @@
|
|
|
/**
|
|
|
* @license
|
|
|
- * Copyright 2010-2024 Three.js Authors
|
|
|
+ * Copyright 2010-2025 Three.js Authors
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
*/
|
|
|
'use strict';
|
|
|
|
|
|
-const REVISION = '172';
|
|
|
+const REVISION = '173dev';
|
|
|
|
|
|
const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
|
|
|
const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
|
|
|
@@ -38577,6 +38577,8 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
|
|
|
boxMesh.geometry.dispose();
|
|
|
boxMesh.material.dispose();
|
|
|
|
|
|
+ boxMesh = undefined;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if ( planeMesh !== undefined ) {
|
|
|
@@ -38584,6 +38586,8 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
|
|
|
planeMesh.geometry.dispose();
|
|
|
planeMesh.material.dispose();
|
|
|
|
|
|
+ planeMesh = undefined;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -50736,8 +50740,11 @@ class WebXRManager extends EventDispatcher {
|
|
|
//
|
|
|
|
|
|
const enabledFeatures = session.enabledFeatures;
|
|
|
+ const gpuDepthSensingEnabled = enabledFeatures &&
|
|
|
+ enabledFeatures.includes( 'depth-sensing' ) &&
|
|
|
+ session.depthUsage == 'gpu-optimized';
|
|
|
|
|
|
- if ( enabledFeatures && enabledFeatures.includes( 'depth-sensing' ) ) {
|
|
|
+ if ( gpuDepthSensingEnabled && glBinding ) {
|
|
|
|
|
|
const depthData = glBinding.getDepthInformation( views[ 0 ] );
|
|
|
|