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