No More Textures - Real Time VFX
3a598c46d338e348199de0b1a08d475470a048f1 2 1024x565.png

The essential collection of 2D shape functions:
http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm

But "relatively cheap" is very … relative ALUs are cheaper than texture readings, that's right, but you usually need more than one shape :to wink: The advantage of procedural shapes is that they can be scaled well. Always sharp, no compression artifacts. And they're a lot easier to animate. However, filtering can be a problem for a large frequency / range.

Distance field based procedures also have interesting properties when you switch between them. Basically, you're mixing distorted UV rooms and then running the threshold function to finalize a shape. I tried here:

LEAVE A REPLY

Please enter your comment!
Please enter your name here