Shaders from scratch: GLSL fragment shaders for beginners
10 steps · about 9 h 50 min · Beginner
- Introduction to shaders: Learn the basics! (video, YouTube, 20 min)
A short visual overview of what a shader is, GLSL data types, vectors and uniforms, so the later steps make sense.
- The Book of Shaders: about this book (article, The Book of Shaders, 10 min)
Explains why fragment shaders give you control over every pixel and what you need to know before starting.
- A gentle introduction to Shadertoy (tutorial, Agate Dragon, 30 min)
Gets you running your first shader in the browser, with no install, and introduces UV coordinates.
- Shadertoy Tutorial Part 1 - Intro (tutorial, inspirnathan.com, 35 min)
Covers GLSL syntax, vectors, the graphics pipeline and the mainImage function in more depth.
- The Book of Shaders (guide, Patricio Gonzalez Vivo and Jen Lowe, 4 h)
The core course: shaping functions, colour, shapes, patterns, noise and fractals, with live editable examples.
- Three.js Shaders (GLSL) Crash Course For Absolute Beginners (video, YouTube, 1 h)
Shows how the same GLSL runs inside a real web 3D project, including vertex shaders and varyings.
- An Introduction to Raymarching (repo, Electric Square on GitHub, 1 h 30 min)
A guided workshop that builds distance fields, shapes and lighting step by step.
- Painting with Math: A Gentle Study of Raymarching (blog, Maxime Heckel, 1 h)
A gentle write-up that adds smooth blending, lighting and shadows to your raymarching knowledge.
- Inigo Quilez: Distance functions (reference, iquilezles.org, 30 min)
The standard catalogue of SDF shapes and operations, for building your own scenes.
- awesome-glsl: Compilation of the best resources to learn programming OpenGL Shaders (repo, vanrez-nez on GitHub, 15 min)
A curated list of further tutorials and editors to pick your next project from.