Open wk39 opened 9 months ago
I tried to replicate this issue on the current main (07cd955c02e186ee36279e9511ee1dc4eb785960) but couldn't replicate it. It looks like the root cause of this issue was fixed at some point.
Thanks for your check!
I checked out (https://github.com/bevyengine/bevy/commit/07cd955c02e186ee36279e9511ee1dc4eb785960 ) and tested but this happens still.
What I did:
Thank you.
Would you also believe that adding .insert(DepthPrepass)
on the camera entity also crashes the example?
Bevy version
0.12.1
Relevant system information
cargo 1.74.0 (ecb9851af 2023-10-18) Ubuntu 22.04
What you did
I added some PBR mesh in the examples/shader/shader_instancing.rs.
What went wrong
When I add a PBR Mesh, there is an issue where the coordinates of the instance mesh are changing.
Additional information
After several trial and error attempts, I modified 'instancing.wgsl' as follows:
by forcing model_matrix as identity it resolved.
Modified example to reproduce this issue is here:
https://github.com/wk39/temporary/blob/4acf99b967d3f5ab678177502db71523eb0f2e59/shader_instancing.rs
Be careful. bevy version is v0.12.1 (shader_instancing.rs in latest commit has some change)