Book | The Unity Shaders Bible (Digital Version)

28 ratings


The definitive book to learn shaders in Unity.

  • Introduction to the shader programming language.
  • Lighting, shadow, and surface.
  • Compute Shader, Ray Tracing, and Sphere Tracing.

Learn shaders in Unity, starting with the basics and finishing with advanced concepts.
The book includes a detailed explanation of languages like Cg, HLSL, ShaderLab, and Shader Graph.

+370 informative pages on shader programming.
From beginner to advanced linearly, starting with basic concepts (e.g. unlit shader) and ending with advanced ones (e.g. compute shader).

Clear and direct.
You will be able to find the differences and similarities between Built-in, Universal and High Definition Render Pipeline.

Real-life examples.
All the examples in this book could be applied to production-stage projects.

Chapter 1: Introduction to the shader programming language.

  1. It covers previous knowledge (normals, vertices, tangents, and more).
  2. Shows the structure of a shader in ShaderLab, Cg, and HLSL language.
  3. Analogy between properties and global variables.
  4. SubShader and commands (ColorMask, Stencil, Blending and more).
  5. Intrinsic functions (step, smoothstep, ceil, floor and more).
  6. Matrices and much more.

Chapter 2: Lighting, shadow and surface.

  1. We will review a simple lighting model.
  2. Look at the normal map and its implementation.
  3. Ambient, diffuse, specular and environmental reflection.
  4. Lighting and shadow analysis.
  5. Standard Surface shader, inputs and outputs.
  6. Shader Graph and much more.

Chapter 3: Compute Shader, Ray Tracing y Sphere Tracing.

  1. It covers advanced concepts (threads, ray cast, GPGPU, and more).
  2. The structure of a Compute Shader and buffer variables.
  3. Compute Shader semantics (SV_DispatchThreadID, SV_Group, and more).
  4. Kernel explanation.
  5. Implicit surfaces and smooth minimum explanation.
  6. Ray Tracing rendering configuration and more.

I want this!

PDF + UnityPackage file

English & Spanish


(28 ratings)
5 stars
4 stars
3 stars
2 stars
1 star

Book | The Unity Shaders Bible (Digital Version)

28 ratings
I want this!