How to avoid drawing triangles that are outsid the viewport?

Printable View