skip to content

What does Schlick's Fresnel approximation compute in a PBR shader, and why is F0 near 0.04 for dielectrics but coloured for metals?

level: middleimportance: should knowfreq 50%

answer

  1. more reflection at a shallow angle
  2. a fifth-power blend toward one
  3. reflectance from the refractive index
  4. conductors reflect differently per wavelength

basics

~20 s

Schlick's approximation gives reflectance as F0 + (1 - F0)(1 - cos theta)^5, rising from F0 head-on to 1 at grazing. Dielectrics reflect about 2-5% head-on, set by refractive index; metals reflect far more and unequally per wavelength, so their F0 is a colour.

solid answer

~50 s

Fresnel reflectance is the fraction of light an interface reflects instead of refracting, and it grows toward 100% at grazing angles for every material. Schlick's approximation replaces the full Fresnel equations with `F = F0 + (1 - F0) * (1 - cos_theta)^5`, a blend from `F0`, the reflectance at normal incidence, toward 1. In a microfacet BRDF, `cos_theta` is `dot(v, h)` because each facet's normal is the half vector. For a dielectric in air, `F0 = ((n - 1) / (n + 1))^2`; with `n = 1.5` that is `(0.5 / 2.5)^2 = 0.04`, and most everyday non-metals land between 0.02 and 0.05 with almost no variation per colour channel. Metals absorb the refracted light and reflect most of the rest, by amounts that differ strongly across wavelengths, so their `F0` is a bright RGB colour and carries the metal's whole appearance.

go deeper

for a junior

Recall that every surface reflects more at grazing angles, that F0 is reflectance head-on, and the rough values: about 0.04 for non-metals, a bright colour for metals.

for a middle

Write Schlick's formula, derive 0.04 from a refractive index of 1.5, and explain why metal F0 is coloured and why metals have no diffuse term. Say which cosine goes in per light.

for a senior

Explain how the angle dependence moves into a precomputed table for environment light, why rough surfaces lose the bright rim, and where Schlick misses real metal curves near grazing.

for a principal

Decide whether a project's material model needs more than Schlick with one F0, such as an edge tint for metals or a dielectric reflectance input, and what each costs artists and shaders.

## What Fresnel reflectance is When light reaches the boundary between two media, part of it reflects and part refracts. The **Fresnel equations** give the reflected fraction from the refractive indices and the angle of incidence. Two facts matter for rendering: - every material reflects more as the angle of incidence approaches grazing; - at exactly grazing incidence, 90 degrees from the normal, a smooth interface reflects all of the light, whatever it is made of. ## Schlick's approximation The full equations average two polarisations and, for metals, use a complex refractive index. Schlick replaced them with one cheap curve: `F(theta) = F0 + (1 - F0) * (1 - cos(theta))^5` - `F0` is the reflectance at normal incidence, where `cos(theta) = 1` and the second term vanishes. - At grazing incidence `cos(theta) = 0`, the bracket is 1, and `F = 1`. - The fifth power is a fitted shape, not a physical exponent; it follows the real curve closely for dielectrics. - It is a blend between `F0` and 1, so it works per colour channel and `F0` can be an RGB value. - It costs a subtraction, a fifth power by repeated multiplication and a blend, where the full equations need square roots and divisions. ## F0 for dielectrics For light in air reaching a dielectric of refractive index `n`, reflectance at normal incidence is `F0 = ((n - 1) / (n + 1))^2`. Worked for `n = 1.5`: 1. `n - 1 = 0.5` and `n + 1 = 2.5`. 2. `0.5 / 2.5 = 0.2`. 3. `0.2^2 = 0.04`. | Material | Refractive index | F0 | |---|---|---| | Water | 1.33 | about 0.02 | | Typical glass or plastic | 1.5 | 0.04 | | Diamond | 2.42 | about 0.17 | Most everyday non-metals fall between 0.02 and 0.05, which is why a metallic-roughness shader can use 0.04 for all of them. The value is grey because a dielectric's refractive index changes little across visible wavelengths. A dielectric's colour comes from its diffuse term: light that refracts in, scatters among pigment and comes back out. ## F0 for metals Metals are conductors. Their refractive index has a large absorbing part, so the light that enters is absorbed almost immediately and there is no diffuse term. What remains is reflection, and it is strong: commonly around 0.5 to 1.0 in most channels. It also varies with wavelength. Gold reflects almost all red light, less green and much less blue, roughly 1.0, 0.7 and 0.3 in linear red, green and blue; silver and aluminium are high and nearly equal across channels. Because `F0` is the only place a metal's colour can live, it is a colour, and in a metallic-roughness material it is read from the base colour. ## Which angle goes into the formula - **Per light, inside the microfacet BRDF**: `cos(theta) = dot(v, h)`, because each reflecting facet's normal is the half vector `h` (equal to `dot(l, h)` for a mirror reflection). - **Pre-integrated environment lighting**: individual facets are no longer visited, so the angle dependence is integrated into a table indexed by `dot(n, v)` and roughness. - **Weighting the diffuse term by roughly `(1 - F)`**: an approximation either way; shaders use `dot(v, h)` per light or `dot(n, v)` for ambient light. ## Where it falls short - **Metals near grazing**: measured curves of some metals dip slightly below `F0` and shift hue before rising to 1. One `F0` cannot express that, so some material models add a second **edge tint** colour. - **Rough surfaces**: the bright rim of a smooth sphere is much weaker on a rough one. Masking hides many facets at grazing view and the facets that remain face other directions; that is the job of the distribution and geometry terms, not a flaw in `F`. - **Layered materials**: a clear coat over paint has two interfaces, and each needs its own Fresnel factor; light that the coat reflects is not available to the layer below. ## Mistakes to avoid - Tinting a dielectric's highlight with its base colour. - Leaving out the Fresnel term, so smooth surfaces never brighten at grazing angles. - Feeding `dot(n, l)` into the per-light formula. - Treating 0.04 as a law: water sits nearer 0.02 and gemstones much higher. - Letting the cosine go negative: `(1 - cos(theta))^5` then exceeds 1 and so does `F`, so clamp it at zero first.

  • Why does the per-light term use dot(v, h) while environment lighting uses dot(n, v)?
    Per light, one known half vector picks the reflecting facets, and Fresnel is a property of those facets, so the angle is between the view and h. For environment light every direction contributes, so the shader cannot pick one h. The Fresnel dependence is integrated over the lobe beforehand into a table indexed by dot(n, v) and roughness, which is the only angle left at run time.
  • Why does a rough sphere show a much weaker white rim than a smooth one?
    Fresnel brightening applies per facet, at the angle between the view and that facet's normal. On a rough surface seen at grazing angles, masking hides many facets and the visible ones are tilted toward the viewer, so their local angle is less grazing. The macro-level reflectance therefore rises much less than the smooth-interface curve suggests.

Stand at the edge of a calm lake. Looking straight down you see through the water to the stones beneath, because little light reflects; looking toward the far shore, at a shallow angle, the surface becomes a mirror of the sky. Schlick's curve is that change, from F0 at your feet to full reflection at the horizon.

  • Fresnel only matters for water and glass, not opaque materials.
  • Metals have F0 near 0.04 and get their colour from the diffuse term.
  • Reflectance falls toward zero as the view approaches grazing angles.
  • The fifth power in Schlick's formula is a physical constant of light.
  • F0 for a dielectric is its albedo, so red plastic gets a red highlight.