Physically based rendering

Also known as: physically based shading

On this page 7

Physically based rendering (PBR), also called physically based shading, is an approach to rendering and material authoring that calculates surface appearance from measurable optical properties and the conservation of energy, rather than from hand-tuned visual tricks. In 3D graphics & animation, and especially in the area of texturing & materials, PBR defines how a surface reflects, scatters and absorbs light so that a single material looks plausible under any lighting condition.

PBR became the industry default during the 2010s, when film studios and game engines converged on shared material models. Today the same albedo, roughness and metallic textures can move between a texturing application, an offline renderer and a real-time engine with predictable, consistent results.

How physically based rendering models light

Physically based rendering describes every surface with a bidirectional scattering distribution function (BSDF), a mathematical rule that says how much incoming light leaves the surface in each outgoing direction. Most PBR shaders split this response into a diffuse lobe, which represents light that enters the material and scatters out in all directions, and a specular lobe, which represents light reflected directly at the surface boundary.

The specular part is usually built on microfacet theory. It treats a surface as millions of microscopic mirrors whose orientation varies with roughness. A smooth surface aligns the microfacets and produces a tight, bright highlight; a rough surface spreads them and produces a broad, dim one. The widely used GGX distribution (also known as Trowbridge-Reitz) gives highlights a realistic long tail.

Three physical principles keep the result believable. The table below summarizes them and what goes wrong when a shader ignores them.

PrincipleWhat it meansResult if ignored
Energy conservationA surface never reflects more light than it receivesGlowing, overbright materials
Fresnel effectReflectivity rises toward grazing viewing anglesFlat, plastic-looking edges
ReciprocitySwapping light and view directions gives the same valueUnstable results in path tracing
Microfacet roughnessOne value controls highlight size and intensity togetherHighlights that look painted on
Core principles of physically based shading

Material parameters and texture maps in PBR

A PBR material is defined by a small set of physically meaningful parameters, each usually driven by a texture map. Because the values correspond to real properties, artists can calibrate them against measured reference data instead of guessing.

The following table lists the maps used in the common metallic-roughness workflow, with typical value ranges for real materials.

MapWhat it controlsTypical values
Albedo (base color)Diffuse color or metal reflectance tintsRGB 50-240 for non-metals
MetallicWhether the surface is a conductor0 or 1, gradients only at transitions
RoughnessMicrosurface spread of reflections0 (mirror) to 1 (fully matte)
NormalSmall-scale surface directionTangent-space RGB vectors
Ambient occlusionCavity shadowing from nearby geometry0 to 1, mostly near 1
Specular levelReflectance at normal incidence for non-metalsAbout 4% (F0 of 0.04)
Typical maps in a metallic-roughness PBR material

The key value for non-metals is F0, the reflectance when light hits the surface head-on. Almost all dielectrics such as plastic, wood, stone and skin fall within 2-5% reflectance, which is why most shaders use a default of 0.04. Metals have no diffuse component and a colored F0 between roughly 50% and 100%, which is why gold reflects a warm tint while silver reflects a neutral one.

Metallic and specular workflows compared

PBR content is authored in one of two texture workflows that encode the same physics differently. The metallic-roughness workflow is the most common choice in game engines and in the glTF format, while the specular-glossiness workflow remains in some legacy pipelines and offline tools.

AspectMetallic-roughnessSpecular-glossiness
Reflectance inputDerived from albedo and metallicExplicit RGB specular map
Smoothness inputRoughness (1 is matte)Glossiness (1 is mirror)
Memory costLower, grayscale metallic mapHigher, full-color specular map
Risk of invalid valuesLow, F0 for dielectrics is fixedHigher, artists can break energy rules
Typical useReal-time engines, glTF, webOlder engines, some film tools
Metallic-roughness and specular-glossiness workflows

Conversion between the two is possible, but it is lossy at metal-to-dielectric transitions, where the metallic workflow produces a thin white or dark fringe. Teams therefore pick one workflow per project and keep every asset in the same convention.

PBR in real-time engines and offline renderers

Physically based rendering is a shared material language, but real-time and offline renderers solve the lighting differently. A path tracer integrates the BSDF by tracing many light paths per pixel, while a game engine approximates the same integral with precomputed lighting, image-based lighting and screen-space effects to hold a frame budget of a few milliseconds.

Modern uber-shaders such as the Principled BSDF in Blender, the OpenPBR Surface specification and the Standard Surface model extend the basic model with layers for clearcoat, sheen, subsurface scattering and transmission. Interchange formats such as MaterialX and glTF describe these parameters so materials survive the move between applications.

ContextLighting methodTypical trade-off
Game engineImage-based lighting, light probes, shadow mapsSpeed over exact indirect light
Real-time ray tracingHybrid rasterization with traced reflectionsAccuracy limited by ray count and denoising
Offline path tracerMonte Carlo integration of all light pathsAccuracy over render time
Texturing applicationPreview with environment mapsClose match, not final lighting
How PBR is evaluated in different rendering contexts

Common mistakes and limitations of PBR

PBR guarantees plausibility only when the inputs are plausible. Most visual problems come from invalid texture values, not from the shading model itself. The table below lists frequent errors and how to correct them.

SymptomLikely causeFix
Dull, gray metalsDark albedo on a metallic surfaceUse measured metal reflectance colors
Chalky, flat lookLighting baked into the albedoRemove shadows and highlights from base color
Uniform plastic sheenConstant roughness everywhereAdd roughness variation for wear and dirt
Color shifts between toolsAlbedo read as linear dataSet color space to sRGB for color maps only
Frequent PBR authoring errors

The model also has real limits. Standard PBR shaders assume surfaces larger than the wavelength of light, so iridescence, thin films and diffraction need dedicated extensions. Physically based does not mean physically exact: real-time engines still rely on approximations, and stylized projects may deliberately bend the rules while keeping the parameter structure.

In simple terms

Physically based rendering is a way of describing materials the way nature actually works. The artist does not paint a fake shine onto a surface. Instead, the artist tells the computer what the material is like. Is it rough or smooth? Is it metal? What color is it?

The computer then works out how light should bounce off it. The rules follow real physics. As a result, the same material looks right everywhere, in bright sunlight or in a dim room. A real wooden table looks like wood in any light, and a good PBR material behaves the same way.

A practical example

A small studio is producing a vehicle for a racing game and a matching cinematic trailer. The texture artist authors the car in a texturing application using the metallic-roughness workflow: painted body panels with metallic set to 0, an F0 of 0.04 and roughness around 0.3 under a clearcoat layer, chrome trim with metallic 1 and roughness 0.05, and tires with roughness near 0.9.

The same five texture maps are exported once. In the game engine the car is lit by light probes and an HDR sky, and in the offline path tracer used for the trailer it is lit by a studio HDRI. Without any retuning, the paint, chrome and rubber read correctly in both, so the studio avoids maintaining two material sets and cuts look-development time for the asset from days to hours.