How I can smooth the edges in custom material?

I made the avatar that is filling it’s opacity clockwise, but I don’t know how to smooth the edges that appear inside with the help of the logic.
image

The logic:


(I’m complete zero in making materials and copy-pasted half of the logic from a different material that I made with youtube tutorial)