From 409ec6dbbd6b06985751ce9791c600f7eadfb743 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 25 Aug 2024 14:48:42 -0400 Subject: [PATCH] Effects: Use FullScreenQuad. (#1189) --- .../examples/jsm/effects/AnaglyphEffect.d.ts | 16 +++++++++++----- .../jsm/effects/ParallaxBarrierEffect.d.ts | 11 +++++++---- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/types/three/examples/jsm/effects/AnaglyphEffect.d.ts b/types/three/examples/jsm/effects/AnaglyphEffect.d.ts index 915370ef4..2313c4f42 100644 --- a/types/three/examples/jsm/effects/AnaglyphEffect.d.ts +++ b/types/three/examples/jsm/effects/AnaglyphEffect.d.ts @@ -1,11 +1,17 @@ import { Camera, Matrix3, Scene, WebGLRenderer } from "three"; -export class AnaglyphEffect { - constructor(renderer: WebGLRenderer, width?: number, height?: number); +declare class AnaglyphEffect { colorMatrixLeft: Matrix3; + colorMatrixRight: Matrix3; - dispose(): void; - render(scene: Scene, camera: Camera): void; - setSize(width: number, height: number): void; + setSize: (width: number, height: number) => void; + + render: (scene: Scene, camera: Camera) => void; + + dispose: () => void; + + constructor(renderer: WebGLRenderer, width?: number, height?: number); } + +export { AnaglyphEffect }; diff --git a/types/three/examples/jsm/effects/ParallaxBarrierEffect.d.ts b/types/three/examples/jsm/effects/ParallaxBarrierEffect.d.ts index ce8644f47..b414ab6d4 100644 --- a/types/three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +++ b/types/three/examples/jsm/effects/ParallaxBarrierEffect.d.ts @@ -1,8 +1,11 @@ import { Camera, Scene, WebGLRenderer } from "three"; -export class ParallaxBarrierEffect { - constructor(renderer: WebGLRenderer); +declare class ParallaxBarrierEffect { + setSize: (width: number, height: number) => void; + render: (scene: Scene, camera: Camera) => void; + dispose: () => void; - render(scene: Scene, camera: Camera): void; - setSize(width: number, height: number): void; + constructor(renderer: WebGLRenderer); } + +export { ParallaxBarrierEffect };