transformedNormalView
A read-only node representing the final, ready-for-lighting surface normal in view space. It incorporates all factors like the base normal, normal map, flat shading, and two-sided materials.
Core Advantages
Completely encapsulates the complex calculation from base geometry normal to the final view-space normal, providing a single, reliable, and consistent normal input for all lighting and reflection effects, greatly simplifying material creation.
Common Uses
Serving as the core input for PBR lighting calculations.
Providing the normal direction for environment map reflections.
Calculating the Fresnel effect and rim lighting.
How to adjust
This node is read-only; its value is determined by material properties. Add surface detail by setting a normal map to `material.normalNode`, or create a faceted (low-poly) look by setting `material.flatShading` to `true`.
Code Examples
1// Map the view-space normal [-1, 1] to RGB color [0, 1] for visualization
2material.colorNode = transformedNormalView.mul( 0.5 ).add( 0.5 );