Messy DX code to render a triangle.