瀏覽代碼

Merge pull request #17387 from sam6321/patch-1

Fix depthTexture types in WebGLRenderTarget.d.ts
Mr.doob 6 年之前
父節點
當前提交
11c7e50eb4
共有 1 個文件被更改,包括 3 次插入1 次删除
  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.
 	 */