Mr.doob 5 gadi atpakaļ
vecāks
revīzija
8bb05729b0
2 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. 5 5
      src/math/Vector4.js
  2. 5 5
      src/renderers/webgl/WebGLState.js

+ 5 - 5
src/math/Vector4.js

@@ -315,17 +315,17 @@ Object.assign( Vector4.prototype, {
 			m31 = te[ 2 ], m32 = te[ 6 ], m33 = te[ 10 ];
 
 		if ( ( Math.abs( m12 - m21 ) < epsilon ) &&
-			 ( Math.abs( m13 - m31 ) < epsilon ) &&
-			 ( Math.abs( m23 - m32 ) < epsilon ) ) {
+		     ( Math.abs( m13 - m31 ) < epsilon ) &&
+		     ( Math.abs( m23 - m32 ) < epsilon ) ) {
 
 			// singularity found
 			// first check for identity matrix which must have +1 for all terms
 			// in leading diagonal and zero in other terms
 
 			if ( ( Math.abs( m12 + m21 ) < epsilon2 ) &&
-				 ( Math.abs( m13 + m31 ) < epsilon2 ) &&
-				 ( Math.abs( m23 + m32 ) < epsilon2 ) &&
-				 ( Math.abs( m11 + m22 + m33 - 3 ) < epsilon2 ) ) {
+			     ( Math.abs( m13 + m31 ) < epsilon2 ) &&
+			     ( Math.abs( m23 + m32 ) < epsilon2 ) &&
+			     ( Math.abs( m11 + m22 + m33 - 3 ) < epsilon2 ) ) {
 
 				// this singularity is identity matrix so angle = 0
 

+ 5 - 5
src/renderers/webgl/WebGLState.js

@@ -243,8 +243,8 @@ function WebGLState( gl, extensions, capabilities ) {
 			setFunc: function ( stencilFunc, stencilRef, stencilMask ) {
 
 				if ( currentStencilFunc !== stencilFunc ||
-					 currentStencilRef 	!== stencilRef 	||
-					 currentStencilFuncMask !== stencilMask ) {
+				     currentStencilRef !== stencilRef ||
+				     currentStencilFuncMask !== stencilMask ) {
 
 					gl.stencilFunc( stencilFunc, stencilRef, stencilMask );
 
@@ -258,9 +258,9 @@ function WebGLState( gl, extensions, capabilities ) {
 
 			setOp: function ( stencilFail, stencilZFail, stencilZPass ) {
 
-				if ( currentStencilFail	 !== stencilFail 	||
-					 currentStencilZFail !== stencilZFail ||
-					 currentStencilZPass !== stencilZPass ) {
+				if ( currentStencilFail !== stencilFail ||
+				     currentStencilZFail !== stencilZFail ||
+				     currentStencilZPass !== stencilZPass ) {
 
 					gl.stencilOp( stencilFail, stencilZFail, stencilZPass );