This is so far the best billboard shader tutorial I've seen. I think the explanation of how the transform matrices work within the vertex shader is missed in most other tutorials. You are a good teacher!
@sealsharp7 ай бұрын
Great one. I searched for "unity billboard shader" because i am watching a series about creating your own particle system right now and the part about setting up the billboard effect seemed rather complicated.
@vanan22358 ай бұрын
When I watched your videos, I felt like I learned a lot of things. Thank you teacher
@WinsdayWolf934 ай бұрын
is there a way to keep the sprite from facing up or down? or is that impossible from the shader?
@FirnoxGames4 ай бұрын
Yes this should be possible, it's how I believe tree billboard shaders work. However, you'll have to use a slightly different method to what I did here. Extracting the rotation element from UNITY_MATRIX_V, and removing them (The transpose should be the inverse for rotations). I think it will only work when you don't scale the objects, but that's a tradeoff you'll have to make.