Unless... you also track gradient.

After some poking around, I found this paper which tries to solve similar issue:
https://core.ac.uk/download/pdf/50538578.pdf

Quick hack shadertoy, that does not quite do the right thing, but it does get rid of the bulge:
https://www.shadertoy.com/view/wff3Wj

Comments