materialClearcoat
Provides the material's clear coat intensity, used to simulate a separate transparent coating over a base material for advanced effects like car paint or varnished wood.
Core Advantages
Abstracts the complex physics of a dual-layer PBR model into intuitive parameters and seamlessly integrates with material properties like `.clearcoat` and `.clearcoatRoughness`, greatly simplifying the creation of layered materials with depth and realism.
Common Uses
Simulating multi-layer car paint to provide its characteristic specular reflections.
Adding a glossy surface finish to lacquered or waxed wood.
Recreating the clear epoxy resin layer covering carbon fiber products.
Simulating wet surfaces by adding a thin film of water.
How to adjust
Adjust by modifying material properties in JavaScript. `material.clearcoat` (0-1) controls the intensity or presence of the clear coat layer. `material.clearcoatRoughness` (0-1) controls the roughness of the clear coat itself, independent of the base material's roughness.
Code Examples
1// In a physical lighting model, the materialClearcoat node provides the final clear coat intensity.
2// Its value is determined by material.clearcoat, material.clearcoatMap, etc.
3// (Typically used internally by materialPhysical, no direct user connection needed)
4
5// Example: Procedurally making an object wet
6material.clearcoat = timerLocal(); // Clear coat intensity animates between 0-1