Browse Source

Fix depthTexture types in WebGLRenderTarget.d.ts

Added depthTexture argument to WebGLRenderTargetOptions and changed depthTexture property on WebGLRenderTarget to be of DepthTexture type instead of Texture type.
Samuel 6 years ago
parent
commit
920ce423cd
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 { 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.
 	 */