A surface normal is a unit-length vector perpendicular to a surface at a given point, indicating the direction the surface faces. Among the 3D fundamentals of computer graphics, the normal, also called the normal vector, is the quantity that lets a renderer decide how much light a surface receives, which side of a polygon is the front and how reflections, refractions and outlines behave.
In 3D graphics & animation, normals are stored per face, per vertex or per texel, and every lighting model from simple Lambert shading to physically based rendering depends on them. Wrong normals produce visibly wrong shading even when the geometry itself is perfect, which is why modelers, technical artists and engine programmers treat normals as data that must be inspected and maintained.
How a surface normal is computed
A face normal is computed from the cross product of two edge vectors of a polygon. For a triangle with vertices A, B and C, the vector (B − A) × (C − A) points away from the face, and dividing it by its length produces a normalized vector of length 1. The order of the vertices, known as the winding order, decides which of the two possible directions the result takes.
Most tools and engines treat counterclockwise winding as front-facing when viewed from outside, although conventions differ between applications and graphics APIs. A vertex normal is usually obtained by averaging the normals of adjacent faces, often weighted by face area or by the corner angle, and then renormalizing. The weighting choice changes how shading behaves on meshes with uneven polygon sizes.
The table below summarizes the common ways a normal is derived and where each method is used.
| Method | Input | Typical use |
|---|---|---|
| Face normal | Cross product of two edges | Flat shading, collision, back-face culling |
| Averaged vertex normal | Mean of adjacent face normals | Smooth shading of organic shapes |
| Area-weighted normal | Face normals scaled by face area | Meshes with mixed polygon sizes |
| Angle-weighted normal | Face normals scaled by corner angle | Robust smoothing independent of tessellation |
| Analytic normal | Gradient of an implicit or parametric surface | Spheres, NURBS, signed distance fields |
Face, vertex and per-pixel normals
Normals exist at three levels of granularity, and each level trades memory against shading fidelity. Face normals give one direction per polygon and produce the faceted look described under flat and smooth shading. Vertex normals are interpolated across the face during rasterization, so a coarse mesh can appear curved.
Per-pixel normals come from a normal map, a texture that stores small directional offsets for every texel. A normal map lets a low poly model display the surface detail of a high poly sculpt without the extra geometry. Tangent-space normal maps are the most common form, because they remain valid when the mesh deforms during animation.
| Level | Storage | Visual result | Cost |
|---|---|---|---|
| Per face | One vector per polygon | Faceted, hard edges | Very low |
| Per vertex | One vector per vertex corner | Smoothly interpolated shading | Low |
| Per pixel | Normal map texture | Fine detail such as pores or rivets | Texture memory and sampling |
A single vertex can carry several normals when it sits on a hard edge. Engines then split the vertex in the GPU buffer, so the reported vertex count in a game engine is often higher than the count shown in the modeling tool.
Why normals control lighting
Lighting calculations use the angle between the normal and other directions. In Lambertian diffuse shading, brightness equals the dot product of the normal N and the light direction L, clamped at zero, so a surface facing the light receives full intensity and a surface at 90 degrees receives none. Specular models such as Blinn-Phong or the microfacet BRDFs of physically based rendering also compare the normal with the view direction and the half vector.
Because these formulas assume unit-length vectors, a normal that is not normalized makes surfaces too bright or too dark. Non-uniform scaling is a frequent cause: when an object is scaled unevenly, normals must be transformed with the inverse transpose of the model matrix, not with the model matrix itself, or they stop being perpendicular to the surface.
The following table lists the main operations in the 3D rendering pipeline that read the normal.
| Operation | What the normal decides | Effect of an error |
|---|---|---|
| Diffuse lighting | Brightness relative to the light | Dark or overly bright patches |
| Specular highlights | Position and shape of reflections | Highlights in the wrong place |
| Back-face culling | Whether a polygon is drawn | Holes or missing faces |
| Environment reflection | Direction sampled from the reflection map | Distorted or inverted reflections |
| Outline and rim effects | Edges where the surface turns away | Broken silhouettes in stylized shading |
Working with normals in modeling tools
Modeling applications expose normals as editable data, and good practice keeps them consistent before export. The most common task is recalculating outward normals, which makes all faces of a closed polygon mesh point away from its interior. Viewport overlays that draw short lines along normals, or color faces blue for front and red for back, help locate problems quickly.
- Unify orientation after Boolean operations, mirroring or importing geometry from other tools.
- Set smoothing by angle, for example 30 to 60 degrees, so that hard edges stay crisp and curved areas stay smooth.
- Use weighted normals on hard surface models to keep large flat faces evenly lit next to beveled edges.
- Preserve custom normals on export to formats such as FBX, glTF or OBJ, and confirm the target engine imports rather than recalculates them.
Negative scale on a transform, such as mirroring an object by −1 on one axis, reverses the winding order and therefore flips normals. Most tools compensate automatically, but applying or freezing such a transform without correcting it is a classic source of inside-out models.
Common normal problems and their fixes
Most shading artifacts that look like texture or lighting bugs are actually normal errors. The table below pairs typical symptoms with their causes and the usual correction.
| Symptom | Likely cause | Fix |
|---|---|---|
| Black or invisible faces | Flipped normals | Recalculate outward or flip the selected faces |
| Dark gradients on flat faces | Smoothing across hard edges | Mark sharp edges or add support geometry |
| Seams along UV borders | Mismatched tangent basis | Bake and render with the same tangent space |
| Shading changes after scaling | Non-uniform scale not handled | Apply scale or use the inverse transpose |
| Lighting looks inverted in one channel | Green channel convention mismatch | Invert the normal map green channel |
The last row reflects a real split in conventions: some tools store normal maps in an OpenGL-style Y-up green channel and others in a DirectX-style Y-down green channel. The difference makes bumps look like dents, and it is fixed by inverting one channel rather than rebaking.
Stripped to the essentials
Imagine a tiny arrow sticking straight out of every point on an object, like the bristles of a brush standing up from its base. That arrow is the surface normal. It tells the computer which way each part of the surface faces.
When the software lights a scene, it checks how directly each arrow points toward a lamp. Arrows pointing at the light make the surface bright, and arrows pointing away make it dark. If the arrows point the wrong way, the object looks wrong, even if its shape is correct.
Where it is applied
A game artist prepares a sci-fi crate for a real-time engine. The high poly version has about 400,000 triangles with sharp panel lines and bolts, but the game budget allows roughly 1,500 triangles. The artist builds a low poly model, sets hard edges at UV seams and bakes a tangent-space normal map from the detailed version.
On first import, the crate shows dark streaks along several edges and the bolts appear sunken. The streaks come from smoothing across 90-degree corners, and the sunken bolts come from a green channel convention mismatch between the baking tool and the engine. After splitting the hard edges, rebaking with the engine tangent basis and flipping the green channel, the 1,500-triangle crate reads as fully detailed under moving lights, at a fraction of the original rendering cost.