mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 09:57:00 +02:00
Since we operate in screen space where y points down we need to reverse what is considered clock wise and what is considered counter clockwise. The rasterizer always expects triangles with a consistent winding order thus swap 2 vertices if necessary to reverse the winding before passing the triangle on to the rasterization stage.