---
id: "blinn-phong-reflection"
title: "Phong and Blinn-Phong shading"
aliases: [Phong reflection, Blinn-Phong]
domain: "materials"
stage: "material"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, cpu, unity, unreal, godot, blender]
year_introduced: 1975
inputs: [normals, material-params]
outputs: [radiance]
style: "both"
dynamic: "both"
cost: "cheap"
authority: "Blinn, 1977"
url: "https://texelatlas.vercel.app/t/blinn-phong-reflection/"
sources_verified_at: "2026-11-29"
---
# Phong and Blinn-Phong shading (Blinn, 1977)

> 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.

## 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

## 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 + kd*max(dot(N,L),0) + ks*spec, 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 use it

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](https://texelatlas.vercel.app/t/cook-torrance-brdf.md) with [GGX / Trowbridge-Reitz normal distribution](https://texelatlas.vercel.app/t/ggx-trowbridge-reitz.md) when assets need consistent response under many lights or image-based lighting. Prefer [Disney principled BRDF](https://texelatlas.vercel.app/t/disney-principled-brdf.md) when artists should author roughness/metalness. For toon looks start from the diffuse and specular thresholds in [Toon / cel shading with lighting ramps](https://texelatlas.vercel.app/t/toon-shading.md).

## Cost

cheap — A handful of dot products and one pow per light.
Measured GPU Weight: 1.09× baseline (feather) — 0.0359 ms median / 0.0384 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 0.98× baseline (feather) — 0.0156 ms median (2.3× faster on L4).
Ampere A100 scaling: 1× baseline (feather) — 0.0288 ms median (1.25× faster on A100).

## Failure modes

- 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

## Engine support

- babylonjs: builtin — `new BABYLON.StandardMaterial(...) (specularPower)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Materials/standardMaterial.pure.ts, checked 2026-12-01)
- threejs: builtin — `new THREE.MeshPhongMaterial({ shininess })` (evidence: https://github.com/mrdoob/three.js/blob/r187/src/materials/MeshPhongMaterial.js, checked 2026-12-01)
- unity: builtin — `URP > Shader "Universal Render Pipeline/Simple Lit"` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl, checked 2026-12-01) — URP Simple Lit shader.

## Dataflow

- Inputs: normals, material-params
- Outputs: radiance
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu, cpu, unity, unreal, godot, blender

## Presets

### Blinn-Phong lit sphere (glsl-fragment; rendered 2026-11-29)

```json
{
  "SHININESS": 64,
  "KS": 0.8
}
```

```glsl
// 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

## Combines with

- [Normal mapping with MikkTSpace](https://texelatlas.vercel.app/t/normal-mapping-mikktspace.md): Normal maps perturb N before the dot products, giving cheap surface detail under the same lighting equation.

## Sources

1. [primary] James F. Blinn (1977) Models of light reflection for computer synthesized pictures. ACM SIGGRAPH Computer Graphics. https://doi.org/10.1145/965141.563893 (verified via crossref on 2026-11-29)
2. [primary] Bui Tuong Phong (1975) Illumination for computer generated pictures. Communications of the ACM. https://doi.org/10.1145/360825.360839 (verified via crossref on 2026-11-29)
3. [tutorial] Joey de Vries Advanced Lighting. learnopengl.com. https://learnopengl.com/Advanced-Lighting/Advanced-Lighting (verified via http on 2026-11-29)

## Cite this entry

Texel. "Phong and Blinn-Phong shading." https://texelatlas.vercel.app/t/blinn-phong-reflection/ (accessed 2026-12-01).
