InstancedMesh shadows are wrong
See original GitHub issueDescription of the problem
InstancedMesh
shadows don’t show up correctly. It seems only one instance shadow is rendered always at the origin.
This online experiment shows the bug. Please look at the center of the tower to see the instance shadow: https://yomboprime.github.io/instancedBricks/examples/instancedBricks.html
Three.js version
- Dev
Browser
- All of them
OS
- All of them
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
InstancedMesh shadows not working - Questions - three.js forum
It seems shadows are not working for InstancedMesh. Only one instance shadow is rendered, at the origin. ... Issue: InstancedMesh shadows are wrong....
Read more >Shadows rendering incorrectly (displaced) with Instanced ...
Hi all, I'm using a Blueprint class to generate a random maze. It has two instanced static mesh components, Floor and Walls, that...
Read more >THREE.js instanced geometries shadows - CodePen
an example of using shadows with THREE.js instanced geometries...
Read more >Raycasting with InstancedMesh, InstancedBufferGeometry ...
My guess is my matrix coordinate calculation method is wrong. ... to matrix to InstancedMesh instance, this is kind of like a shadow...
Read more >Some instanced meshes receive shadow, but not all?
PG Description: All boxes are instanced meshes the source mesh is set to receive shadows, and each instanced mesh is a shadow caster....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I made sure shadows worked when implementing
InstancedMesh
, I’ll have a look.Should work now! https://jsfiddle.net/mknxytf7/