supereggbert 6 年之前
父节点
当前提交
e1b786d0cf
共有 3 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      src/lights/LightShadow.d.ts
  2. 1 1
      src/lights/LightShadow.js
  3. 0 1
      src/renderers/webgl/WebGLShadowMap.js

+ 1 - 1
src/lights/LightShadow.d.ts

@@ -20,7 +20,7 @@ export class LightShadow {
 	clone( recursive?: boolean ): this;
 	toJSON(): any;
 	getFrustum(): number;
-	updateMatrices( light: Light , viewCamera: Camera, viewportIndex: number ): void;
+	updateMatrices( light: Light, viewCamera: Camera, viewportIndex: number ): void;
 	getViewport( viewportIndex: number ): Vector4;
 	getFrameExtents(): Vector2;
 

+ 1 - 1
src/lights/LightShadow.js

@@ -53,7 +53,7 @@ Object.assign( LightShadow.prototype, {
 
 	},
 
-	updateMatrices: function ( light, viewCamera, viewportIndex ) {
+	updateMatrices: function () {
 
 		var shadowCamera = this.camera,
 			shadowMatrix = this.matrix,

+ 0 - 1
src/renderers/webgl/WebGLShadowMap.js

@@ -9,7 +9,6 @@ import { MeshDepthMaterial } from '../../materials/MeshDepthMaterial.js';
 import { MeshDistanceMaterial } from '../../materials/MeshDistanceMaterial.js';
 import { Vector4 } from '../../math/Vector4.js';
 import { Vector2 } from '../../math/Vector2.js';
-import { Matrix4 } from '../../math/Matrix4.js';
 import { Frustum } from '../../math/Frustum.js';
 
 function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {