Overview
Many manufactured surfaces have more than one layer of reflection. Car paint has a glossy clear lacquer over coloured metallic flakes, and brushed aluminium stretches highlights along its brush direction. MeshPhysicalMaterial models both with clearcoat and anisotropy. This lab compares a sphere using them against a baseline PBR sphere under a live environment probe.
How it works
MeshPhysicalMaterial extends MeshStandardMaterial with extra lobes in its lighting model:
- Clearcoat adds a second, independent specular layer on top of the base material, like varnish.
clearcoat(0–1) sets its strength andclearcoatRoughnessits glossiness. A rough metallic base under a sharp clearcoat is the classic car-paint look: blurred coloured reflections underneath and crisp white reflections on top. - Anisotropy makes roughness directional. Instead of a round highlight, light is stretched along one tangent direction, as on brushed metal, vinyl records or hair.
anisotropysets the strength andanisotropyRotationthe direction in tangent space.
Both effects depend heavily on what the surface reflects, so a CubeCamera captures a changing environment into scene.environment, giving the highlights something to show.
Exploring the demo
Compare the two spheres and look for the double reflection on the clearcoat sphere: a sharp outer highlight over a softer inner one. Increase anisotropy and the highlight stretches into a streak; change the rotation and the streak spins around the surface. Raise clearcoat roughness to see the top layer frost over.
Practical advice
Physical material features cost extra shader work, so enable them only where they make a visible difference, typically hero objects such as vehicles and products. Anisotropy needs tangents, which are generated from UVs, so meshes need sensible UV layouts. Continue with iridescence and thin-film materials, experiment freely in the material editor, and see how environment capture works in environment maps.