Skip to content

Commit

Permalink
proper pass types
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutymane committed Apr 10, 2022
1 parent ccfe9eb commit 45e4b8a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions types/three/examples/jsm/postprocessing/MaskPass.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Scene, Camera } from '../../../src/Three';
import { Object3D, Camera } from '../../../src/Three';

import { Pass } from './Pass';

export class MaskPass extends Pass {
constructor(scene: Scene, camera: Camera);
scene: Scene;
constructor(scene: Object3D, camera: Camera);
scene: Object3D;
camera: Camera;
inverse: boolean;
}
Expand Down
6 changes: 3 additions & 3 deletions types/three/examples/jsm/postprocessing/Pass.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export class Pass {
): void;
}

export class FullScreenQuad {
constructor(material?: Material);
export class FullScreenQuad<M extends Material> {
constructor(material?: M);

render(renderer: WebGLRenderer): void;
dispose(): void;

material: Material;
material: M;
}
6 changes: 3 additions & 3 deletions types/three/examples/jsm/postprocessing/RenderPass.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Scene, Camera, Material, Color } from '../../../src/Three';
import { Object3D, Camera, Material, Color } from '../../../src/Three';

import { Pass } from './Pass';

export class RenderPass extends Pass {
constructor(scene: Scene, camera: Camera, overrideMaterial?: Material, clearColor?: Color, clearAlpha?: number);
scene: Scene;
constructor(scene: Object3D, camera: Camera, overrideMaterial?: Material, clearColor?: Color, clearAlpha?: number);
scene: Object3D;
camera: Camera;
overrideMaterial: Material;
clearColor: Color;
Expand Down
4 changes: 2 additions & 2 deletions types/three/examples/jsm/postprocessing/SSAARenderPass.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Scene, Camera, ColorRepresentation, ShaderMaterial, WebGLRenderTarget } from '../../../src/Three';
import { Scene, Camera, ColorRepresentation, ShaderMaterial, WebGLRenderTarget, Object3D } from '../../../src/Three';

import { Pass } from './Pass';

export class SSAARenderPass extends Pass {
constructor(scene: Scene, camera: Camera, clearColor: ColorRepresentation, clearAlpha: number);
constructor(scene: Object3D, camera: Camera, clearColor?: ColorRepresentation, clearAlpha?: number);
scene: Scene;
camera: Camera;
sampleLevel: number;
Expand Down
2 changes: 1 addition & 1 deletion types/three/examples/jsm/postprocessing/ShaderPass.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export class ShaderPass<T extends {} = TUniforms, Uniforms extends TUniforms = E
textureID: string;
uniforms: AvoidNullUniforms<Uniforms>;
material: ShaderMaterial<Uniforms>;
fsQuad: FullScreenQuad;
fsQuad: FullScreenQuad<typeof this.material>;
}

0 comments on commit 45e4b8a

Please sign in to comment.