Browse Source

Merge pull request #17387 from sam6321/patch-1

Fix depthTexture types in WebGLRenderTarget.d.ts
Mr.doob 6 years ago
parent
commit
11c7e50eb4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/renderers/WebGLRenderTarget.d.ts

+ 3 - 1
src/renderers/WebGLRenderTarget.d.ts

@@ -1,5 +1,6 @@
 import { Vector4 } from './../math/Vector4';
 import { Vector4 } from './../math/Vector4';
 import { Texture } from './../textures/Texture';
 import { Texture } from './../textures/Texture';
+import { DepthTexture } from './../textures/DepthTexture';
 import { EventDispatcher } from './../core/EventDispatcher';
 import { EventDispatcher } from './../core/EventDispatcher';
 import { Wrapping, TextureFilter, TextureDataType } from '../constants';
 import { Wrapping, TextureFilter, TextureDataType } from '../constants';
 
 
@@ -14,6 +15,7 @@ export interface WebGLRenderTargetOptions {
 	depthBuffer?: boolean; // true;
 	depthBuffer?: boolean; // true;
 	stencilBuffer?: boolean; // true;
 	stencilBuffer?: boolean; // true;
 	generateMipmaps?: boolean; // true;
 	generateMipmaps?: boolean; // true;
+	depthTexture?: DepthTexture;
 }
 }
 
 
 export class WebGLRenderTarget extends EventDispatcher {
 export class WebGLRenderTarget extends EventDispatcher {
@@ -33,7 +35,7 @@ export class WebGLRenderTarget extends EventDispatcher {
 	texture: Texture;
 	texture: Texture;
 	depthBuffer: boolean;
 	depthBuffer: boolean;
 	stencilBuffer: boolean;
 	stencilBuffer: boolean;
-	depthTexture: Texture;
+	depthTexture: DepthTexture;
 	/**
 	/**
 	 * @deprecated Use {@link Texture#wrapS texture.wrapS} instead.
 	 * @deprecated Use {@link Texture#wrapS texture.wrapS} instead.
 	 */
 	 */