Explorar el Código

Reset _currentDepth... in onSessionEnd in WebXRManager.

Patrick Chilton hace 5 años
padre
commit
608216f1b7
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/renderers/webxr/WebXRManager.js

+ 3 - 0
src/renderers/webxr/WebXRManager.js

@@ -116,6 +116,9 @@ function WebXRManager( renderer, gl ) {
 
 		inputSourcesMap.clear();
 
+		_currentDepthNear = null;
+		_currentDepthFar = null;
+
 		//
 
 		renderer.setFramebuffer( null );

粤ICP备19079148号