Example of computing the precise coverage of a triangle on a texture surface, with float precision.
Note: impractical as-is for real-time use on a gpu with large numbers of triangles due to the number of samples required (similar to resolution of image)
Note: the demo expects a triangle to be contained within the texture and does not cull automatically
Controls: Move the mouse in the right canvas to move the triangle center, scale using the mouse wheel.