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

13 lines
530 B
Markdown

# Notes
### Rounded Rectangle
Someone suggested this:
`you could do something like this in your shader`
[desmos example](https://www.desmos.com/calculator/hfoxt2z9k6)
`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](https://www.desmos.com/calculator/4wfgwplyk3)
`not terrible, just gotta deal with the discontinuities which you could probably do by just rejecting the points with nan/infinity coordinates`