@TheArtofCodeIsCool
  @TheArtofCodeIsCool
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
Ray Marching Simple ShapesThe Universe WithinShader Showcase: Code CoutureShaderToy Tutorial Part 2 - Building stuff with circlesThe Matrix explained!Calculating Ray-Sphere IntersectionsBouncing Balls, Round Two: Logarithms?!Unity Shader Coding for Noobs!LiveCoding - The Universe Within - Part 2Shader Coding: Over the Moon - Part 1Shader Showcase: MegaparsecsLive Coding:Bending Light

Ray Marching Simple Shapes @TheArtofCodeIsCool

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER