Definitions
Nearby Words

The Blinn–Phong shading model (also called Blinn–Phong reflection model or modified Phong reflection model) is a modification to the Phong reflection model, trading visual precision for computing efficiency, developed by Jim Blinn.

Blinn-Phong is the default shading model used in OpenGL and Direct3D's fixed-function pipeline (before Direct3D 10), and is carried out on each vertex as it passes down the graphics pipeline; pixel values between vertices are interpolated by Gouraud shading by default, rather than the more expensive Phong shading.

## The concept

In Phong shading, one must continually recalculate the angle $R cdot V$ between a viewer (V) and the beam from a light-source (L) reflected (R) on a surface.

If we instead calculate a halfway vector between the viewer and light-source vectors,

$H = frac\left\{L + V\right\}\left\{left| L + V right|\right\}$

we can replace $R cdot V$ with $N cdot H$, where N is the normalized surface normal.

This dot product represents the cosine of an angle that is half of the angle represented by Phong's dot product, if V, L, N and R all lie in the same plane. The angle between N and H is therefore sometimes called the halfway angle.

The halfway angle is smaller than the angle we want in Phong's model, but considering that Phong is using $left\left(R cdot V right\right)^\left\{alpha\right\}$, we can set an exponent $alpha^prime$ so that $left\left(N cdot H right\right)^\left\{alpha^prime\right\}$ is closer to the former expression. The size of the specular highlights can be matched in this way very closely to a corresponding Phong reflection, but they will always retain a subtly different shape.

Additionally, while it can be seen as an approximation to the Phong model, it produces more accurate models of empirically determined bidirectional reflectance distribution functions than Phong for many types of surfaces. ()

## Efficiency

It might seem unlikely that this model is more efficient than Phong, since it contains a square root calculation, while the original Phong model needs a simple vector reflection. However, if we treat the viewer and light to be at infinity, which is common and the default behaviour of, for instance, OpenGL when using directional lights, then the half-angle vector is independent of position and surface curvature, which means that it can be calculated once for each light, and used for the entire frame, or indeed while light and viewpoint remain in the same relative position. The same is not true with Phong's original reflected light vector which depends on the surface curvature and must be recalculated for each pixel of the image (or for each vertex of the model in the case of vertex lighting).