3 ms·
It can, and it does, sort of! There's a bit more boilerplate in most environments designed for shipping things, but one of the more high power/terseness activit
by MrLeap 5y ago
It can, and it does, sort of! There's a bit more boilerplate in most environments designed for shipping things, but one of the more high power/terseness activities is writing a shader that can render signed distance fields.
https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm https://www.iquilezles.org/www/articles/distfunctions/distfu... compose a few of these together and you can manifest some pretty nuts infinity fractals.
Here's a video I made playing with the functions Inigo's provided. https://twitter.com/LeapJosh/status/1439876813258256385 https://twitter.com/LeapJosh/status/1439876813258256385
- silisili 5y agoThanks - that's really interesting stuff. Not immediately obvious to me what it would be used for, but mesmerizing nonetheless.
- MrLeap 5y agoVisual effects in games and movies is a direct usage. If I wanted to have a brick wall I could progressively melt with a large laser, I'd render it with an SDF. SDFs are good for anything with volume, as mesh based rendering is intrinsically 'hollow'. It's not the only solution for things like that, there's also voxel and particle based rendering, as well as reasonable hybrids. It's just another tool in the toolbox.