Need to correctly implement aliasing for line and triangle.