Intro to Shaders – JavaScript & p5.js Course for Beginners

Jul 15, 2026 06:17 PM - 1 week ago 12687


Learn the fundamentals of shaders, pinch zero anterior acquisition required. Starting from the basics of really the GPU renders pixels, you'll advancement to building an animated, fractal bosom effect written wholly from scratch. Designed specifically for imaginative developers who want to break into WebGL and maestro the mathematics of motion. Course developed by @pattvira ⭐️ Connect pinch Patt Vira ⭐️ 🔗 Website: https://pattvira.com 🔗 Twitter: https://twitter.com/pattvira 🔗 Instagram: https://www.instagram.com/pattvira ⭐️ Code ⭐️ Part 1: https://editor.p5js.org/pattvira/sketches/LV4ZSuHXD Part 2: https://editor.p5js.org/pattvira/sketches/fdykpy1OD Part 3: https://editor.p5js.org/pattvira/sketches/I0HtC1ISj Part 4: https://editor.p5js.org/pattvira/sketches/WQXm21NW2 ❤️ Support for this transmission comes from our friends astatine Scrimba – the coding level that's reinvented interactive learning: https://scrimba.com/freecodecamp ⭐️ Chapters ⭐️ - 0:00:00 Intro - 0:00:51 Part 1 - Basic Introduction to Shaders - 0:01:17 What is simply a shader? - 0:03:24 Bridge betwixt CPU and GPU - 0:04:20 Vertex and part shaders - 0:06:09 Start coding successful p5.js - 0:09:44 GLSL Rulebook - 0:12:50 Set up canvas abstraction successful a vertex shader - 0:16:16 Color pixels successful a part shader - 0:17:44 Map clip abstraction to surface coordinates - 0:20:03 Create a fixed gradient - 0:22:04 Create a move gradient - 0:27:03 Part 2 - Domain Repetition - 0:28:33 Draw a circle - 0:32:05 Use gl_FragCoord to get pixel coordinates - 0:38:45 Create tiling pinch fract() - 0:42:00 Fix facet ratio - 0:43:56 Introduce the modular solution fix - 0:45:01 Part 3 - Shaping Functions - 0:45:38 What is simply a shaping function? - 0:46:20 Explore sin() function - 0:47:41 Explore step() function - 0:48:25 Explore smoothstep() function - 0:49:40 Explore abs() function - 0:51:33 Create a glowing effect pinch inverse region equation - 0:55:02 Animate glowing rings - 0:54:21 Experiment pinch different shapes - 0:57:43 Part 4: Colors - 0:57:43 Introduce mix() function - 1:01:01 Change the blend ratio utilizing uTime - 1:02:12 Change the blend ratio utilizing position - 1:04:18 Change the blend ratio utilizing shaping functions (step & smoothstep) - 1:05:22 Change the blend ratio utilizing shaping functions (distance functions) - 1:08:22 Introduce cosine-based colour palette - 1:10:54 Bonus! Fractals! 🎉 Thanks to our Champion and Sponsor supporters: 👾 @omerhattapoglu1158 👾 @goddardtan 👾 @akihayashi6629 👾 @kikilogsin 👾 @anthonycampbell2148 👾 @tobymiller7790 👾 @rajibdassharma497 👾 @CloudVirtualizationEnthusiast 👾 @adilsoncarlosvianacarlos 👾 @martinmacchia1564 👾 @ulisesmoralez4160 👾 @_Oscar_ 👾 @jedi-or-sith2728 👾 @justinhual1290 -- Learn to codification for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles connected programming: https://freecodecamp.org/news
More