Explorar o código

Add patternTexture in type definition file

Otherwise tsc will complain when an user try to set the texture
François Chabbey %!s(int64=5) %!d(string=hai) anos
pai
achega
b49842a39f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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;