glTF KHR_materials_clearcoat Extension Explained

The KHR_materials_clearcoat extension in glTF simulates a thin, transparent, and glossy protective layer applied over a base physical material. This article explains how the clearcoat model functions within physically based rendering (PBR), the specific optical behaviors it reproduces, its core parameters, and common real-world use cases in 3D computer graphics.

The Clearcoat Visual Effect

In standard microfacet-based PBR workflows, a surface possesses a single interaction layer defined by roughness, metallicity, and base color. The KHR_materials_clearcoat extension extends this standard model by adding a secondary, dielectric reflection layer situated directly above the base substrate.

Light striking the object interacts with two distinct interfaces:

  1. The Clearcoat Layer: A portion of the incoming light reflects immediately off the smooth outer layer, producing sharp, white specular highlights typical of dielectric materials.
  2. The Base Layer: The remaining light transmits through the clearcoat and interacts with the underlying material, which can be rough, metallic, or diffusely colored.

This layered approach allows 3D artists to represent complex materials that exhibit simultaneous sharp highlights and diffuse or rough underlying textures without increasing mesh geometry.

Key Parameters in glTF

The extension introduces several distinct controls to model the top layer independently of the base material:

  • Clearcoat Factor (clearcoatFactor): A scalar value ranging from 0.0 to 1.0 that dictates the intensity or thickness of the clearcoat layer. A value of zero disables the effect, while one represents full coating.
  • Clearcoat Texture (clearcoatTexture): A grayscale texture map used to modulate the clearcoat factor across the surface, enabling effects like worn-away varnish, fingerprint smudges, or partial wax coatings.
  • Clearcoat Roughness (clearcoatRoughnessFactor and clearcoatRoughnessTexture): Determines the microfacet roughness specifically for the clearcoat layer. Even if the base material has high roughness (a matte appearance), a low clearcoat roughness value yields a sharp, mirror-like highlight on top.
  • Clearcoat Normal Map (clearcoatNormalTexture): An independent normal map applied strictly to the outer coat. This allows the simulation of surface imperfections unique to the top coat—such as an "orange peel" texture on car paint or fine scratches on lacquer—while the base material retains its own normal map.

Common Use Cases

The clearcoat extension is essential for accurately rendering a wide variety of manufactured and natural surfaces:

  • Automotive Paint: Metal flakes or colored pigments reside in a rougher lower layer, overlaid with a pristine, glossy lacquer coat.
  • Lacquered Wood: A rough, fibrous wood grain texture visible beneath a high-gloss protective varnish.
  • Carbon Fiber: Distinct woven structural patterns sealed beneath a smooth polymer resin.
  • Glazed Ceramics and Porcelain: Clay or stone bodies sealed under a smooth, reflective glaze.
  • Wet Surfaces: Objects like wet asphalt, stones, or skin, where a thin film of water acts as an independent, highly specular outer layer.