Clearcoat and Metalness Interaction in glTF
In glTF’s physically based rendering (PBR) pipeline, the
KHR_materials_clearcoat extension adds an independent,
transparent dielectric layer on top of a standard metallic-roughness
base material. When applied over a metallic base (where
metallicFactor approaches 1.0), the clearcoat alters the
surface’s visual behavior by introducing a two-tier specular reflection:
an achromatic, dielectric reflection on the outer surface and a colored,
conductive reflection on the substrate below. This interaction dictates
how light attenuates, preserves energy, and decouples surface roughness
between the coating and the underlying metal.
Physical Layering and Energy Conservation
The clearcoat operates as a distinct, thin dielectric film resting
directly above the substrate. In glTF, standard metals do not possess
diffuse reflections; their color comes entirely from tinted specular
reflections determined by the base color (baseColorTexture
or baseColorFactor).
When light strikes the surface:
- Clearcoat Reflection: A portion of the incoming light is immediately reflected at the clearcoat interface. Because the clearcoat is strictly dielectric, this reflection is achromatic (white) and governed by standard dielectric Fresnel equations (typically defaulting to an index of refraction of 1.5, yielding roughly 4% reflectance at normal incidence).
- Transmission and Attenuation: The remaining light transmits through the clearcoat to hit the base material. The clearcoat layer absorbs or redirects this light, meaning the energy reaching the metal substrate is diminished by the amount reflected by the clearcoat.
- Substrate Interaction: The transmitted light interacts with the metal layer. Because the base is metallic, it reflects the transmitted light using its colored specular response.
- Exit Reflection: The light reflected by the metal passes back out through the clearcoat, contributing a secondary, colored reflection beneath the clearcoat's primary reflection.
Roughness Decoupling
One of the primary visual effects of combining clearcoat with
metalness is the separation of roughness values. The base material uses
its own roughness parameter (roughnessFactor), while the
clearcoat has an independent roughness value controlled by
clearcoatRoughnessFactor.
- Smooth Clearcoat over Rough Metal: Setting a low clearcoat roughness over a high base roughness creates the appearance of brushed, sandblasted, or oxidized metal encased in a smooth resin, lacquer, or glass finish. The object displays a sharp, white specular highlight from the clearcoat alongside a broad, blurred, colored sheen from the underlying metal.
- Rough Clearcoat over Smooth Metal: Setting a high clearcoat roughness over a low base roughness creates a frosted, matte, or dusty appearance over a mirror-like metallic core.
Normal Mapping and Geometric Detail
The clearcoat extension supports its own normal map
(clearcoatNormalTexture), separate from the base material's
normal map. When combined with a metallic base:
- The base normal map perturbs the colored reflections of the metal substrate, simulating dents, scratches, or tooling marks in the metal.
- The clearcoat normal map perturbs only the outer white reflection, simulating orange peel, surface scratches, or uneven varnish application.
This separation ensures that underlying metal damage appears visually beneath a smooth topcoat, or conversely, that a pristine metallic surface can exhibit surface-level protective coating imperfections.