Skip to content

Commit a520da5

Browse files
committed
fix: type compatibility with @types/[email protected]
The `Renderer` interface was removed in @types/[email protected]. This PR removes usages so that `three-stdlib` works with @types/[email protected].
1 parent 1f41939 commit a520da5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/postprocessing/Pass.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { OrthographicCamera, PlaneGeometry, Mesh, Material, Renderer, WebGLRenderer, WebGLRenderTarget } from 'three'
1+
import { OrthographicCamera, PlaneGeometry, Mesh, Material, WebGLRenderer, WebGLRenderTarget } from 'three'
22

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

53-
public render(renderer: Renderer): void {
53+
public render(renderer: WebGLRenderer): void {
5454
renderer.render(this.mesh, this.camera)
5555
}
5656
}

src/utils/ShadowMapViewer.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Light, Renderer } from 'three'
1+
import { Light, WebGLRenderer } from 'three'
22

33
export interface Size {
44
width: number
@@ -18,7 +18,7 @@ export class ShadowMapViewer {
1818
enabled: boolean
1919
size: Size
2020
position: Position
21-
render(renderer: Renderer): void
21+
render(renderer: WebGLRenderer): void
2222
updateForWindowResize(): void
2323
update(): void
2424
}

0 commit comments

Comments
 (0)