瀏覽代碼

Add patternTexture in type definition file

Otherwise tsc will complain when an user try to set the texture
François Chabbey 5 年之前
父節點
當前提交
b49842a39f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      examples/jsm/postprocessing/OutlinePass.d.ts

+ 3 - 1
examples/jsm/postprocessing/OutlinePass.d.ts

@@ -8,7 +8,8 @@ import {
 	MeshBasicMaterial,
 	MeshDepthMaterial,
 	ShaderMaterial,
-	WebGLRenderTarget
+	WebGLRenderTarget,
+	Texture
 } from '../../../src/Three';
 
 import { Pass } from './Pass';
@@ -28,6 +29,7 @@ export class OutlinePass extends Pass {
 	downSampleRatio: number;
 	pulsePeriod: number;
 	resolution: Vector2;
+	patternTexture: Texture;
 
 	maskBufferMaterial: MeshBasicMaterial;
 	renderTargetMaskBuffer: WebGLRenderTarget;