Skip to content

Commit

Permalink
Effects: Use FullScreenQuad. (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Aug 25, 2024
1 parent f3e6e30 commit 409ec6d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
16 changes: 11 additions & 5 deletions types/three/examples/jsm/effects/AnaglyphEffect.d.ts
Original file line number Diff line number Diff line change
@@ -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 };
11 changes: 7 additions & 4 deletions types/three/examples/jsm/effects/ParallaxBarrierEffect.d.ts
Original file line number Diff line number Diff line change
@@ -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 };

0 comments on commit 409ec6d

Please sign in to comment.