elvis Profile picture
#indiedev made Mannequin horror game 🎲 Games at https://t.co/2M13cUN0iJ 🛠️ Asset Store Publisher https://t.co/X9cGtih76K
Apr 23, 2022 4 tweets 4 min read
🧵For all my Unity dev fellows out there, if you ever used "Graphics.DrawMeshInstancedIndirect" to do GPU instancing (left pic) and when you ROTATED your meshes they all got wrong lighting (right pic), I found out why is that 👇

#gamedev #indiedev #unity3d @unitygames

(1/4) From what I could gather from this forum post -> forum.unity.com/threads/trying…

Unity's example does a hack to inverse the matrix on the shader, but it doesnt work in the general case

(2/4)