This version
Per-pixel normals from a procedural brick height field, Blinn-Phong lighting from a moving point light with falloff.
How this version works
This full-scale fragment shader generates staggered bricks procedurally, with smooth mortar edges and sinusoidal surface grain. Four nearby height samples form a normal at each fragment, rather than reading a stored normal-map texture. A moving point light provides diffuse shading with distance falloff and a power-48 Blinn-Phong highlight. Per-brick colour variation and height-dependent darkening colour the surface, followed by a power-0.85 adjustment to the final RGB values.
The trick in this version
The GPU calculates procedural height samples and lighting independently for each fragment in one shader pass. Surface detail comes from perturbed normals rather than extra geometry, with no CPU light-spot table or indexed palette.
Historical context · GPU
2000 · Mark Kilgard / NVIDIA · GDC 2000
Bump mapping on the GPU
Normal maps, normalisation cube maps and register-combiner dot products: the bridge from lookup tricks to per-pixel GPU lighting.
today · Joey de Vries · LearnOpenGL
Normal mapping as routine
Tangent-space normal maps make detailed surface lighting standard without adding a single triangle.
- Platform
- GPU · GLSL
- Era
- GPU
- Rendered on
- GPU
- Tags
- normal map · Blinn-Phong