Skip to content

Commit

Permalink
fix: type compatibility with @types/three@0.172.0 (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jan 7, 2025
1 parent 1f41939 commit f33f122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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
}

0 comments on commit f33f122

Please sign in to comment.