diff --git a/types/three/examples/jsm/postprocessing/Pass.d.ts b/types/three/examples/jsm/postprocessing/Pass.d.ts index 8fa609867..3d784c285 100644 --- a/types/three/examples/jsm/postprocessing/Pass.d.ts +++ b/types/three/examples/jsm/postprocessing/Pass.d.ts @@ -1,4 +1,4 @@ -import { Material, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three'; +import { Material, WebGLMultipleRenderTargets, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three'; export class Pass { constructor(); @@ -12,10 +12,10 @@ export class Pass { setSize(width: number, height: number): void; render( renderer: WebGLRenderer, - writeBuffer: WebGLRenderTarget, - readBuffer: WebGLRenderTarget, - deltaTime: number, - maskActive: boolean, + writeBuffer: WebGLMultipleRenderTargets | WebGLRenderTarget | null, + readBuffer?: WebGLMultipleRenderTargets | WebGLRenderTarget, + deltaTime?: number, + maskActive?: boolean, ): void; dispose(): void; diff --git a/types/three/examples/jsm/postprocessing/RenderPass.d.ts b/types/three/examples/jsm/postprocessing/RenderPass.d.ts index 7e43df5d1..d44916f5d 100644 --- a/types/three/examples/jsm/postprocessing/RenderPass.d.ts +++ b/types/three/examples/jsm/postprocessing/RenderPass.d.ts @@ -1,13 +1,28 @@ -import { Scene, Camera, Material, Color } from '../../../src/Three'; - +import { + Scene, + Camera, + Material, + Color, + WebGLMultipleRenderTargets, + WebGLRenderTarget, + WebGLRenderer, +} from '../../../src/Three'; import { Pass, FullScreenQuad } from './Pass'; export class RenderPass extends Pass { - constructor(scene: Scene, camera: Camera, overrideMaterial?: Material, clearColor?: Color, clearAlpha?: number); - scene: Scene; - camera: Camera; - overrideMaterial: Material; - clearColor: Color; + constructor(scene?: Scene, camera?: Camera, overrideMaterial?: Material, clearColor?: Color, clearAlpha?: number); + scene?: Scene; + camera?: Camera; + overrideMaterial?: Material; + clearColor?: Color; clearAlpha: number; clearDepth: boolean; + + render( + renderer: WebGLRenderer, + _: WebGLMultipleRenderTargets | WebGLRenderTarget | null, + writeBuffer?: WebGLMultipleRenderTargets | WebGLRenderTarget, + deltaTime?: number, + maskActive?: boolean, + ): void; }