I love the recent videos about the renderer in particular, but in my code I can't find what's causing the following bug. I made a short recording. In the screen recording I rotate a rectangle with the screen center as origin, x-axis is (cos angle, sin angle), and the y-axis the perpendicular. I verified that I compute the correct dot products in the draw rectangle function and check that the result for every edge is < 0 etc. In between the 0, 90, 180, and 270 degrees angles the rectangle changes shape... Anyone have an idea what I'm doing wrong?
Thank you very much