Parcourir la source

Simplify formula (#31405)

WestLangley il y a 6 mois
Parent
commit
96801d6318
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/math/Matrix4.js

+ 1 - 1
src/math/Matrix4.js

@@ -1119,7 +1119,7 @@ class Matrix4 {
 
 		if ( reversedDepth ) {
 
-			c = far / ( far - near ) - 1;
+			c = near / ( far - near );
 			d = ( far * near ) / ( far - near );
 
 		} else {

粤ICP备19079148号