hlgl/NOTES.md
2024-11-25 15:27:55 -07:00

530 B

Notes

Rounded Rectangle

Someone suggested this:

you could do something like this in your shader desmos example

I imagine it wuold be pretty easy to turn this into a parametric function and then you could just get verticies via plugging numbers into it...

other desmos example

not terrible, just gotta deal with the discontinuities which you could probably do by just rejecting the points with nan/infinity coordinates