Sfoglia il codice sorgente

fixing linting issues

Emmett Lalish 5 anni fa
parent
commit
ccfb746864

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

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

+ 0 - 2
src/lights/PointLightShadow.d.ts

@@ -5,6 +5,4 @@ export class PointLightShadow extends LightShadow {
 
 
 	camera: PerspectiveCamera;
 	camera: PerspectiveCamera;
 
 
-	updateMatrices( light: Light, viewportIndex: number ): void;
-
 }
 }

+ 1 - 1
src/lights/PointLightShadow.js

@@ -58,7 +58,7 @@ PointLightShadow.prototype = Object.assign( Object.create( LightShadow.prototype
 
 
 	isPointLightShadow: true,
 	isPointLightShadow: true,
 
 
-	updateMatrices: function ( light, viewportIndex ) {
+	updateMatrices: function ( light, viewportIndex = 0 ) {
 
 
 		var camera = this.camera,
 		var camera = this.camera,
 			shadowMatrix = this.matrix,
 			shadowMatrix = this.matrix,