4 ms·
One huge benefit is the way you describe them. It's very concise. // This is a sphere length(p) - size; There are no polygons, just surfaces described
by tiborsaas 5y ago
One huge benefit is the way you describe them. It's very concise.
// This is a sphere
length(p) - size;
There are no polygons, just surfaces described with math. You can do operations with them, like addition, subtraction, deformation quite easily, which is also much more complex with polygon based 3D models.
https://iquilezles.untergrund.net/www/articles/distfunctions/distfunctions.htm https://iquilezles.untergrund.net/www/articles/distfunctions...