Shaders from scratch: GLSL fragment shaders for beginners

10 steps · about 9 h 50 min · Beginner

  1. 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.

  2. 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.

  3. 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.

  4. Shadertoy Tutorial Part 1 - Intro (tutorial, inspirnathan.com, 35 min)

    Covers GLSL syntax, vectors, the graphics pipeline and the mainImage function in more depth.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. Inigo Quilez: Distance functions (reference, iquilezles.org, 30 min)

    The standard catalogue of SDF shapes and operations, for building your own scenes.

  10. 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.