Skip to content

Commit

Permalink
Fix OnBeforeShadow definition
Browse files Browse the repository at this point in the history
  • Loading branch information
agargaro committed Oct 15, 2024
1 parent 9d21536 commit f592218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objects/InstancedMesh2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f592218

Please sign in to comment.