Loading the code workspace…
Write a C program that implements back-face culling for a set of triangles.
Requirements:
Back-face culling, enabled by default in OpenGL, Vulkan, and Direct3D, eliminates roughly half of all triangles in a closed mesh before rasterization even begins, a free performance win every engine from Quake to Unreal relies on. Getting triangle winding order wrong is one of the most common bugs when importing meshes from tools like Blender or Maya into a custom renderer.