瀏覽代碼

WebGLLights: Clean up.

Mr.doob 5 年之前
父節點
當前提交
833a0fb028
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/renderers/webgl/WebGLLights.js

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

@@ -28,7 +28,7 @@ function UniformsCache() {
 				case 'DirectionalLight':
 					uniforms = {
 						direction: new Vector3(),
-						color: new Color(),
+						color: new Color()
 					};
 					break;
 
@@ -40,7 +40,7 @@ function UniformsCache() {
 						distance: 0,
 						coneCos: 0,
 						penumbraCos: 0,
-						decay: 0,
+						decay: 0
 					};
 					break;
 
@@ -49,7 +49,7 @@ function UniformsCache() {
 						position: new Vector3(),
 						color: new Color(),
 						distance: 0,
-						decay: 0,
+						decay: 0
 					};
 					break;
 
@@ -169,7 +169,7 @@ function WebGLLights() {
 
 			numDirectionalShadows: - 1,
 			numPointShadows: - 1,
-			numSpotShadows: - 1,
+			numSpotShadows: - 1
 		},
 
 		ambient: [ 0, 0, 0 ],