transformedClearcoatNormalView
An internal node that calculates the final view-space normal for the clearcoat layer in `MeshPhysicalNodeMaterial`. It allows the clearcoat to have its own normal map, enabling surface details different from the base layer.
Core Advantages
Enables layered material details by allowing the clearcoat to have its own surface normal (e.g., the "orange peel" on car paint), separate from the base material, greatly enhancing the realism of complex materials like car paint and varnished wood.
Common Uses
Adding an "orange peel" effect to advanced car paint materials.
Simulating a smooth varnish coat over carbon fiber or wood.
Simulating wet surfaces by adding a smooth clearcoat reflection (e.g., a rain-slicked road).
How to adjust
This is an internal node; its effect is adjusted via `MeshPhysicalNodeMaterial` properties. Provide a normal map to `material.clearcoatNormalNode` to define the clearcoat's surface detail, and use `material.clearcoatNormalScaleNode` to control its bump strength.
Code Examples
1// 1. Enable the clearcoat layer
2material.clearcoatNode = float( 1.0 );
3
4// 2. Assign a separate normal map to the clearcoat layer
5// This implicitly causes TSL to use transformedClearcoatNormalView
6material.clearcoatNormalNode = texture( aClearcoatNormalMap );
7
8// 3. (Optional) Adjust the strength of the clearcoat normal map
9material.clearcoatNormalScaleNode = vec2( 0.2, 0.2 );