Skip to content
The Book of Shaders
Hidden Gem

Curated by Surfaced Editorial·Developer·2 min read
Share:

The Book of Shaders is an interactive, online textbook created by Patricio Gonzalez Vivo that teaches the fundamentals of fragment shaders using WebGL and GLSL. It combines clear explanations, executable code examples, and live shader editors directly within the browser, allowing for immediate experimentation. This resource is primarily intended for artists, designers, and developers interested in creating real-time graphics, visual effects, or procedural art. Users typically turn to The Book of Shaders when they want to understand how GPU programming works, create stunning visual effects, or delve into creative coding. It leverages WebGL, running entirely within modern web browsers, and its code examples are easily transferable to other graphics environments.

Why It’s Useful

Compared to dense academic texts or scattered online tutorials, The Book of Shaders offers an unparalleled interactive and visual learning experience, making complex graphics programming concepts accessible and engaging. For a visual artist looking to animate generative art, it provides the foundational knowledge to harness the power of shaders for dynamic, procedural visuals. A game developer can use it to understand how to write custom post-processing effects or unique material textures, enhancing their game's visual fidelity. The entire book is completely free and accessible online, making this specialized knowledge available to anyone. Many users are surprised by the extensive community contributions to the examples and the "Fork" feature, allowing them to experiment with existing shaders and share their creations. Its highly specialized subject matter and reliance on mathematical concepts mean it doesn't appeal to a general audience, despite its incredible quality for its niche. The book is open-source, with a vibrant community contributing examples and translations, and receives occasional updates to content and platform features.

Enjoyed this? Get five picks like this every morning.

Free daily newsletter — zero spam, unsubscribe anytime.