Glsl draw arc. The challenge I have is understanding the logic behind it.