Skip to content

Commit

Permalink
Fix depthTexture types in WebGLRenderTarget.d.ts
Browse files Browse the repository at this point in the history
Added depthTexture argument to WebGLRenderTargetOptions and changed depthTexture property on WebGLRenderTarget to be of DepthTexture type instead of Texture type.
  • Loading branch information
sam6321 authored Aug 30, 2019
1 parent 7e0a78b commit 920ce42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderers/WebGLRenderTarget.d.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -14,6 +15,7 @@ export interface WebGLRenderTargetOptions {
depthBuffer?: boolean; // true;
stencilBuffer?: boolean; // true;
generateMipmaps?: boolean; // true;
depthTexture?: DepthTexture;
}

export class WebGLRenderTarget extends EventDispatcher {
Expand All @@ -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.
*/
Expand Down

0 comments on commit 920ce42

Please sign in to comment.