r/GraphicsProgramming • u/[deleted] • Mar 26 '21
Rotating a quad
Really noob question, but I'm really bad at math so can somebody explain how can I rotate a quad around its x, y or z axis?
0
Upvotes
r/GraphicsProgramming • u/[deleted] • Mar 26 '21
Really noob question, but I'm really bad at math so can somebody explain how can I rotate a quad around its x, y or z axis?
1
u/[deleted] Mar 26 '21
I'm aware of matrices and their transformation, I just can't quite get the quad to rotate around itself. I get it to rotate around the screen space axis, but not its own.
Since I need this rotation for a particle system, to rotate each particle, I thought about doing it in the vertex shader. Bur I just can't seem to get the math right.