The Art of Code | Ray Marching Simple Shapes @TheArtofCodeIsCool | Uploaded January 2019 | Updated October 2024, 3 hours ago.
Twitter: @The_ArtOfCode
Facebook: facebook.com/groups/theartofcode
Patreon: patreon.com/TheArtOfCode
PayPal Donation: paypal.me/theartofcode
Live version:
shadertoy.com/view/wdf3zl
In this video I'll go over the distance functions to several primitive shapes: sphere, capsule, torus, box and capped cylinder.
These shapes form the building blocks of just about any complicated shape you want to make so it is good to understand how these functions work.
If you just want to copy past a bunch of distance functions, you can find an exhaustive list of them, along with function to manipulate them here:
iquilezles.org/www/articles/distfunctions/distfunctions.htm
Twitter: @The_ArtOfCode
Facebook: facebook.com/groups/theartofcode
Patreon: patreon.com/TheArtOfCode
PayPal Donation: paypal.me/theartofcode
Live version:
shadertoy.com/view/wdf3zl
In this video I'll go over the distance functions to several primitive shapes: sphere, capsule, torus, box and capped cylinder.
These shapes form the building blocks of just about any complicated shape you want to make so it is good to understand how these functions work.
If you just want to copy past a bunch of distance functions, you can find an exhaustive list of them, along with function to manipulate them here:
iquilezles.org/www/articles/distfunctions/distfunctions.htm