瀏覽代碼

Merge pull request #19252 from habx/feature/webglrendertarget-options-encoding

Added missing "encoding" parameter in WebGLRenderTargetOptions type
Mr.doob 5 年之前
父節點
當前提交
b0fe4d9da7
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/renderers/WebGLRenderTarget.d.ts

+ 2 - 1
src/renderers/WebGLRenderTarget.d.ts

@@ -2,7 +2,7 @@ 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';
+import { Wrapping, TextureFilter, TextureDataType, TextureEncoding } from '../constants';
 
 export interface WebGLRenderTargetOptions {
 	wrapS?: Wrapping;
@@ -16,6 +16,7 @@ export interface WebGLRenderTargetOptions {
 	stencilBuffer?: boolean; // true;
 	generateMipmaps?: boolean; // true;
 	depthTexture?: DepthTexture;
+	encoding?: TextureEncoding;
 }
 
 export class WebGLRenderTarget extends EventDispatcher {