I have an sdf function for a polygon, and I want to be able to round the corners, without changing the size of the resulting shape.
I know that I can round the corners of an sdf by simply subtracting the radius from the result, but this also makes the resulting shape bigger, while I want it to stay the same size.
Here's an example of the sdf with sharp corners
And this is the sdf with rounded corners, but now much larger
Here is a demonstration of what I have currently on Shadertoy: https://www.shadertoy.com/view/NlBcDt