From f592218ce7472bd53583ad54561a7f9bcb6f86c0 Mon Sep 17 00:00:00 2001 From: ANDREA GARGARO Date: Tue, 15 Oct 2024 23:35:43 +0200 Subject: [PATCH] Fix OnBeforeShadow definition --- src/objects/InstancedMesh2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects/InstancedMesh2.ts b/src/objects/InstancedMesh2.ts index 45338db..52a48bf 100644 --- a/src/objects/InstancedMesh2.ts +++ b/src/objects/InstancedMesh2.ts @@ -86,7 +86,7 @@ export class InstancedMesh2< gl.bufferSubData(gl.ARRAY_BUFFER, 0, instanceIndex.array, 0, this._count); } - override onBeforeShadow(renderer: WebGLRenderer, object: any, camera: any, shadowCamera: any, geometry: any, depthMaterial: any): void { // FIX d.ts + override onBeforeShadow(renderer: WebGLRenderer, scene: Scene, camera: Camera, shadowCamera: Camera, geometry: BufferGeometry, depthMaterial: Material): void { this.onBeforeRender(renderer, null, shadowCamera, geometry, depthMaterial); }