4 ms·
Shameless plug - But if you are interested in 2D SDFs and some interesting ways they may be practically used in games, I wrote a bit about it here: https://blog
by gh123man 7y ago
Shameless plug - But if you are interested in 2D SDFs and some interesting ways they may be practically used in games, I wrote a bit about it here: https://blog.sb1.io/intro-to-2d-signed-distance-functions/ https://blog.sb1.io/intro-to-2d-signed-distance-functions/
- Lerc 7y agoI'll add my own plug to this http://blag.fingswotidun.com/2016/05/evolved-images-using-shader-peliminary.html?m=1 http://blag.fingswotidun.com/2016/05/evolved-images-using-sh... Here I use 2D SDFs along with random mutation to generate images rendered from 1k of data. It's the Mona Lisa evolving thing again only using SDF shaders.
- pengaru 7y agoI did something sort of similar for the basic menu controls in a little game I made, visible here [0]. It's a fun puzzle to work out how to draw things like a question mark or on-off power icon in a fragment shader. Definitely not the easiest/quickest way to construct a UI though, especially with weak math-fu like mine. [0] http://pengaru.com/~vc/tmp/q.png http://pengaru.com/~vc/tmp/q.png