Uploaded June 2026 | Updated November 2026, 3 days ago
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
β Watch the entire Shaders Series here: youtube.com/playlist?list=PL0beHPVMklwhYSt_ZNC2HzJKo7qO1-xQJ
Links:
π p5.js editor: editor.p5js.org
π Shaders Series Ep.3 Code: editor.p5js.org/pattvira/sketches/I0HtC1ISj
References:
π 2D Distance Functions by Inigo Quilez: iquilezles.org/articles/distfunctions2d
Timestamps:
0:00 Intro
0:46 What is a shaping function?
1:26 Explore sin() function
2:48 Explore step() function
3:39 Explore smoothstep() function
4:42 Explore abs() function
6:40 Create a glowing effect with inverse distance equation
9:02 Animate glowing rings
10:44 Experiment with other shapes
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
β Watch the entire Shaders Series here: youtube.com/playlist?list=PL0beHPVMklwhYSt_ZNC2HzJKo7qO1-xQJ
Links:
π p5.js editor: editor.p5js.org
π Shaders Series Ep.3 Code: editor.p5js.org/pattvira/sketches/I0HtC1ISj
References:
π 2D Distance Functions by Inigo Quilez: iquilezles.org/articles/distfunctions2d
Timestamps:
0:00 Intro
0:46 What is a shaping function?
1:26 Explore sin() function
2:48 Explore step() function
3:39 Explore smoothstep() function
4:42 Explore abs() function
6:40 Create a glowing effect with inverse distance equation
9:02 Animate glowing rings
10:44 Experiment with other shapes










