Browse Source

Refactoring

oguzeroglu 7 years ago
parent
commit
780d95dd12
2 changed files with 8 additions and 8 deletions
  1. 1 1
      src/renderers/WebGLRenderer.js
  2. 7 7
      src/renderers/webgl/WebGLLights.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -1548,7 +1548,7 @@ function WebGLRenderer( parameters ) {
 		// store the light setup it was created for
 		if ( materialProperties.lightsHash === undefined ) {
 
-				materialProperties.lightsHash = {};
+			materialProperties.lightsHash = {};
 
 		}
 

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

@@ -111,13 +111,13 @@ function WebGLLights() {
 		id: count ++,
 
 		hash: {
-			stateID: -1,
-			directionalLength: -1,
-			pointLength: -1,
-			spotLength: -1,
-			rectAreaLength: -1,
-			hemiLength: -1,
-			shadowsLength: -1
+			stateID: - 1,
+			directionalLength: - 1,
+			pointLength: - 1,
+			spotLength: - 1,
+			rectAreaLength: - 1,
+			hemiLength: - 1,
+			shadowsLength: - 1
 		},
 
 		ambient: [ 0, 0, 0 ],