Explorar o código

StereoCamera: Fix matrix computation. (#33731)

Michael Herzog hai 1 semana
pai
achega
8bfd694e63
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      src/cameras/StereoCamera.js

+ 5 - 2
src/cameras/StereoCamera.js

@@ -136,8 +136,11 @@ class StereoCamera {
 
 		}
 
-		this.cameraL.matrixWorld.copy( camera.matrixWorld ).multiply( _eyeLeft );
-		this.cameraR.matrixWorld.copy( camera.matrixWorld ).multiply( _eyeRight );
+		this.cameraL.matrix.copy( camera.matrixWorld ).multiply( _eyeLeft );
+		this.cameraL.matrixWorldNeedsUpdate = true;
+
+		this.cameraR.matrix.copy( camera.matrixWorld ).multiply( _eyeRight );
+		this.cameraR.matrixWorldNeedsUpdate = true;
 
 	}
 

粤ICP备19079148号