normalFlat
Calculates a uniform, per-face normal in the fragment shader. This overrides the model's default smooth normals, creating a distinct 'low-poly' or 'faceted' visual style without modifying the geometry data.
Core Advantages
Effortlessly renders any smooth geometry with a sharp, faceted look without needing to modify the 3D model asset, offering great flexibility and convenience for artistic styles.
Common Uses
Achieving a 'low-poly' art style
Debugging model wireframe and topology
As a foundation for Non-Photorealistic Rendering (NPR)
How to adjust
This node has no direct parameters. However, its effect can be indirectly influenced by mixing it with other normals (like `normalGeometry`) or by modifying the vertex positions in the vertex shader, which allows for controlling the surface's 'flatness' or shape.
Code Examples
1// Assign the normalFlat node to the material's normalNode property
2// This overrides the geometry's built-in smooth normals, forcing flat normals
3material.normalNode = normalFlat;