Phong and Blinn-Phong shading
The classic empirical shading pair: ambient plus Lambert diffuse plus a specular lobe from a cosine raised to a shininess power, using the reflection vector (Phong) or the half vector (Blinn). Cheap, intuitive, not energy conserving.
Also known as Phong reflection, Blinn-Phong
In the family Materials, BRDFs & texturing, empirical specular model
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Built in | new THREE.MeshPhongMaterial({ shininess }) docs |
| Babylon.js 9.38.0 | Built in | new BABYLON.StandardMaterial(...) (specularPower) docs |
| Godot 4.7 | None found | BaseMaterial3D specular is Schlick-GGX (or toon); Blinn-Phong is not offered. |
| Unity | Built in | URP > Shader "Universal Render Pipeline/Simple Lit" docs URP Simple Lit shader. |
| Unreal 5.7 | None found | PBR shading models only. |
| Blender 5.2 | None found | Glossy/Principled BSDFs only. |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Phong computes the mirror direction R of the light about the normal and takes pow(max(dot(R, V), 0), s) as the specular term, where V points to the viewer and s is a shininess exponent. Blinn replaced R with the half vector H = normalize(L + V) and used pow(max(dot(N, H), 0), s'). That avoids a reflect() call, stays well behaved when the light and eye are far from the normal, and gives a rounder highlight at grazing angles; matching Phong's width needs roughly s' = 4s. The final colour is ka + kdmax(dot(N,L),0) + ksspec, each scaled by light colour. Nothing links the exponent to physical roughness, there is no Fresnel term and no normalisation, so brightness changes as the highlight narrows. Normalised variants multiply the lobe by (s+8)/(8*pi) to restore energy balance, which is the usual bridge to microfacet models.
When to choose it
Reach for it when
- need a simple specular highlight without pbr
- shiny plastic look on a low-end mobile shader
- want a shininess slider artists understand
- highlight looks wrong at grazing angles with reflect vector
- prototyping lighting quickly in a toy renderer
Choose it for prototypes, teaching, low-end mobile, retro or stylised looks and any place a designer wants a direct 'shininess' dial. Prefer Cook-Torrance microfacet BRDF with GGX / Trowbridge-Reitz normal distribution when assets need consistent response under many lights or image-based lighting. Prefer Disney principled BRDF when artists should author roughness/metalness. For toon looks start from the diffuse and specular thresholds in Toon / cel shading with lighting ramps.
Field marks
- Highlights do not narrow with energy conservation, so shiny surfaces look too dim and rough ones too bright
- No Fresnel, so grazing-angle reflections never strengthen and edges look plastic
- Phong's R.V term goes to zero beyond 90 degrees and produces a visible cut-off on the lit side of the terminator
- Blinn highlights are elliptical on flat planes at grazing view angles, unlike Phong's circular spot
- Exponent has no physical mapping, so values cannot be reused across lighting setups or ported to PBR
Presets
Blinn-Phong lit sphere
{
"SHININESS": 64,
"KS": 0.8
}Show GLSL (24 lines)
// GLSL ES 3.0, Shadertoy-style. Blinn-Phong on an analytic sphere.
const float SHININESS = 64.0;
const float KS = 0.8;
const vec3 ALBEDO = vec3(0.7, 0.2, 0.15);
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
vec3 ro = vec3(0.0, 0.0, 3.0);
vec3 rd = normalize(vec3(uv, -1.5));
vec3 col = vec3(0.04, 0.05, 0.08) + 0.12 * (uv.y + 0.5);
float b = dot(ro, rd);
float h = b * b - (dot(ro, ro) - 1.0);
if (h > 0.0) {
vec3 p = ro + rd * (-b - sqrt(h));
vec3 n = normalize(p);
vec3 l = normalize(vec3(cos(iTime), 0.6, 0.8));
vec3 v = -rd;
vec3 hv = normalize(l + v);
float nl = max(dot(n, l), 0.0);
float spec = pow(max(dot(n, hv), 0.0), SHININESS) * step(0.0, dot(n, l));
col = ALBEDO * (0.08 + nl) + KS * spec;
}
fragColor = vec4(pow(col, vec3(1.0 / 2.2)), 1.0);
}Attribution: written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| blinn-phong-sphere | Tesla T4 1920x1080 | 1.09× baseline (feather) · 0.036 ms / 0.038 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| blinn-phong-sphere | NVIDIA L4 1920x1080 | 0.98× baseline (feather) · 0.016 ms / 0.016 ms · 2.3× faster on L4 | opengl-timer-query · Cross-architecture validation |
| blinn-phong-sphere | NVIDIA A100-SXM4-40GB 1920x1080 | 1.00× baseline (feather) · 0.029 ms / 0.029 ms · 1.3× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): cited by Cook-Torrance microfacet BRDF, Kajiya-Kay hair shading.
Crosses
- Normal mapping with MikkTSpace: Normal maps perturb N before the dot products, giving cheap surface detail under the same lighting equation.
Sources
- primaryJames F. Blinn (1977). Models of light reflection for computer synthesized pictures. ACM SIGGRAPH Computer Graphics.Verified via crossref · 2026-11-29doi:10.1145/965141.563893
- primaryBui Tuong Phong (1975). Illumination for computer generated pictures. Communications of the ACM.Verified via crossref · 2026-11-29doi:10.1145/360825.360839