Introduction to Shaders: Shaping Functions (3/4) @pattvira
Introduction to Shaders: Shaping Functions (3/4)  @pattvira
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
Introduction to Shaders: Shaping Functions (3/4)p5.js Coding Tutorial | Pixel Sortingp5.js Coding Tutorial | Oscillating Wavesp5.js Coding Tutorial | Interactive Vinyl Cover (Image Masking)Why Technical Literacy is Your Ultimate Defense Against AIp5.js Coding Tutorial | Donut Forget You Are Awesome 🍩 (aka coding DONUTS)p5.js Coding Tutorial |  Interactive Grid with Bouncing BallIntroduction to Shaders: A Beginners Guide (1/4)p5.js Coding Tutorial | String ArtWhat is Object-Oriented Programming (OOP) - Creative Coding with p5.jsp5.js Coding Tutorial | Persistence of Vision Effectp5.js Coding Tutorial | Location-Based Data Visualization
Patt Vira |

Introduction to Shaders: Shaping Functions (3/4)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER