Forráskód Böngészése

Fix code style issues in WebGLLights

Olli Etuaho 6 éve
szülő
commit
8a7042f65b
1 módosított fájl, 9 hozzáadás és 9 törlés
  1. 9 9
      src/renderers/webgl/WebGLLights.js

+ 9 - 9
src/renderers/webgl/WebGLLights.js

@@ -102,7 +102,7 @@ function UniformsCache() {
 
 var nextVersion = 0;
 
-var shadowCastingLightsFirst = function( lightA, lightB ) {
+var shadowCastingLightsFirst = function ( lightA, lightB ) {
 
 	return ( lightB.castShadow ? 1 : 0 ) - ( lightA.castShadow ? 1 : 0 );
 
@@ -123,9 +123,9 @@ function WebGLLights() {
 			rectAreaLength: - 1,
 			hemiLength: - 1,
 
-			numDirectionalShadows: -1,
-			numPointShadows: -1,
-			numSpotShadows: -1,
+			numDirectionalShadows: - 1,
+			numPointShadows: - 1,
+			numSpotShadows: - 1,
 		},
 
 		ambient: [ 0, 0, 0 ],
@@ -142,9 +142,9 @@ function WebGLLights() {
 		pointShadowMatrix: [],
 		hemi: [],
 
-		numDirectionalShadows: -1,
-		numPointShadows: -1,
-		numSpotShadows: -1
+		numDirectionalShadows: - 1,
+		numPointShadows: - 1,
+		numSpotShadows: - 1
 
 	};
 
@@ -365,8 +365,8 @@ function WebGLLights() {
 			hash.spotLength !== spotLength ||
 			hash.rectAreaLength !== rectAreaLength ||
 			hash.hemiLength !== hemiLength ||
-			hash.numDirectionalShadows !== numDirectionalShadows || 
-			hash.numPointShadows !== numPointShadows || 
+			hash.numDirectionalShadows !== numDirectionalShadows ||
+			hash.numPointShadows !== numPointShadows ||
 			hash.numSpotShadows !== numSpotShadows ) {
 
 			state.directional.length = directionalLength;