When rendering a large halo that intersect the geometry it creates an ugly seam where the halo is clipped by the geometry.
To fix this I implemented a new halo mode “soft”-halo. It scales down the alpha value of the halo where it is close to the geometry.
Screen shots (regular halo at the top and soft halo at the bottom)
And a patch if someone wants to try: