How can I use InstancedMesh with RawShaderMaterial?

Somebody asked the same question last year.
https://discourse.threejs.org/t/how-do-i-use-instancedmesh-with-rawshadermaterial/25040
I have the same problem of only seeing the first instance.

Works as expected, if you add instanceMatrix attribute and multiply position with this matrix:

2 Likes