浏览代码

update d.ts remove old method and add with new methods

supereggbert 6 年之前
父节点
当前提交
11089eb960
共有 3 个文件被更改,包括 14 次插入2 次删除
  1. 6 0
      src/lights/LightShadow.d.ts
  2. 8 0
      src/lights/PointLightShadow.d.ts
  3. 0 2
      src/lights/SpotLightShadow.d.ts

+ 6 - 0
src/lights/LightShadow.d.ts

@@ -1,5 +1,7 @@
 import { Camera } from './../cameras/Camera';
+import { Light } from './../lights/Light';
 import { Vector2 } from './../math/Vector2';
+import { Vector4 } from './../math/Vector4';
 import { Matrix4 } from './../math/Matrix4';
 import { RenderTarget } from '../renderers/webgl/WebGLRenderLists';
 
@@ -17,5 +19,9 @@ export class LightShadow {
 	copy( source: LightShadow ): this;
 	clone( recursive?: boolean ): this;
 	toJSON(): any;
+	getFrustum(): number;
+	updateMatrices( light: Light , viewCamera: Camera, viewportIndex: number ): void;
+	getViewport( viewportIndex: number ): Vector4;
+	getFrameExtents(): Vector2;
 
 }

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

@@ -0,0 +1,8 @@
+import { OrthographicCamera } from './../cameras/OrthographicCamera';
+import { LightShadow } from './LightShadow';
+
+export class PointLightShadow extends LightShadow {
+
+	camera: OrthographicCamera;
+
+}

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

@@ -1,10 +1,8 @@
 import { PerspectiveCamera } from './../cameras/PerspectiveCamera';
-import { Light } from './Light';
 import { LightShadow } from './LightShadow';
 
 export class SpotLightShadow extends LightShadow {
 
 	camera: PerspectiveCamera;
-	update( light: Light ): void;
 
 }