The Book of Shaders is a step-by-step tutorial guide for learning fragment shaders and GLSL programming.
The guide addresses the challenge of understanding fragment shaders, which are abstract and complex but fundamental to graphics programming. It takes a pedagogical approach, building knowledge incrementally from foundational concepts like what shaders are and basic "Hello world" examples through uniforms and shader execution, then progressing to algorithmic drawing techniques including shaping functions, colors, and matrices. The material continues into generative design with random number generation and noise functions, image processing with textures and filters, simulation techniques, and advanced 3D graphics topics like ray marching and normal mapping. Each section combines explanatory text with interactive canvas examples that demonstrate concepts in real time.
The guide suits developers and artists new to shader programming who benefit from a structured, visual learning path. It works well for those wanting to understand graphics fundamentals before diving into specialized graphics libraries or game engines. The book is accessible to programmers transitioning from JavaScript and includes an appendix addressing offline navigation, Raspberry Pi deployment, printing, and collaboration. The interactive examples embedded throughout allow readers to see shader behavior immediately rather than requiring separate compilation and execution steps.
Development activity shows consistent engagement with the material. The project maintains an examples gallery and glossary alongside the core tutorial chapters, indicating ongoing curation of learning resources. An appendix dedicated to alternative ways of using the book, including offline access and printing options, demonstrates attention to diverse learning preferences and accessibility needs. The inclusion of a JavaScript-to-shaders introduction reflects responsiveness to the actual audience encountering the material.