Shaders
summary
Hands‑on Unity shader course that moves from fixed‑function ShaderLab to custom Cg: downloads of UnityCGIncludes and built‑in samplers, implementation of ambient vertex shader, then per‑pixel Blinn‑Phong lighting, separate specular channel, textures via sampler2D, and per‑pixel lighting that compiles and runs in the editor. Demonstrates debugging pitfalls, uses modelview/inverse‑transpose matrices and up to four lights, and finishes with procedural effects like animated UVs and normal extrusion. Original session covered ~20% of slides; this version completes the examples.
AI-written summary · about
chapters (15)
- 0:00Shader programming intro
- 1:29What shaders do
- 10:13Unity shader setup
- 16:21First ambient shader
- 25:57Ambient to vertex shader
- 48:59Vector math for lighting
- 55:43Blinn-Phong lighting
- 1:00:24Ambient diffuse shader
- 1:08:53Adding specular lighting
- 1:16:56Shader textures
- 1:36:30Advanced pixel shaders
- 1:44:19Per-pixel lighting versus per-vertex lighting
- 1:50:29Shader variables in Unity
- 1:57:09Animated shader effect
- 2:08:14Shader intro summary








