Skip to content

Commit

Permalink
Merge pull request #17387 from sam6321/patch-1
Browse files Browse the repository at this point in the history
Fix depthTexture types in WebGLRenderTarget.d.ts
  • Loading branch information
mrdoob authored Aug 30, 2019
2 parents 1ee9309 + 920ce42 commit 11c7e50
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 11c7e50

Please sign in to comment.