Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: type compatibility with @types/three@0.172.0 #394

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/postprocessing/Pass.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OrthographicCamera, PlaneGeometry, Mesh, Material, Renderer, WebGLRenderer, WebGLRenderTarget } from 'three'
import { OrthographicCamera, PlaneGeometry, Mesh, Material, WebGLRenderer, WebGLRenderTarget } from 'three'

class Pass {
// if set to true, the pass is processed by the composer
Expand Down Expand Up @@ -50,7 +50,7 @@ class FullScreenQuad<TMaterial extends Material = Material> {
this.mesh.geometry.dispose()
}

public render(renderer: Renderer): void {
public render(renderer: WebGLRenderer): void {
renderer.render(this.mesh, this.camera)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils/ShadowMapViewer.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Light, Renderer } from 'three'
import { Light, WebGLRenderer } from 'three'

export interface Size {
width: number
Expand All @@ -18,7 +18,7 @@ export class ShadowMapViewer {
enabled: boolean
size: Size
position: Position
render(renderer: Renderer): void
render(renderer: WebGLRenderer): void
updateForWindowResize(): void
update(): void
}
Loading