Bug Description:
Currently, the triangle bounding box is only considering the vertices of the triangle. All points in this bounding box are then checked for laying inside the triangle and only then for laying inside the viewport. For triangles with large areas outside the viewport, this slows the renderer down unbearably.
Bug Fix:
Only check points that we already know lay inside the viewport by cropping the bounding box to the viewport.
Bug Description: Currently, the triangle bounding box is only considering the vertices of the triangle. All points in this bounding box are then checked for laying inside the triangle and only then for laying inside the viewport. For triangles with large areas outside the viewport, this slows the renderer down unbearably.
Bug Fix: Only check points that we already know lay inside the viewport by cropping the bounding box to the viewport.