InstancedMesh shadows not working

It seems shadows are not working for InstancedMesh. Only one instance shadow is rendered, at the origin.

You can see in this interactive demo the shadow of one brick in the center of the tower:
https://yomboprime.github.io/instancedBricks/examples/instancedBricks.html

Any thoughts?

1 Like

Hi!
Maybe this topic will be helpful: Shadow for instances

2 Likes

Instanced Mesh is already in three?

Seems so: Millions of facets with three.js? - #15 by looeee :slight_smile:

Added with R109:

1 Like

Indeed, there seems to be an issue with shadow rendering. As you can see in the middle of the screenshot, the shadow of a single instance is rendered^^:

1 Like

Or perhaps all the instances shadows are rendered at the origin :slight_smile:

Should I file an issue then?

1 Like

Yes please!

1 Like
1 Like

It needs to be implemented for depth and distance material, normal material too to make it complete.

2 Likes