getGeometryRoughness
Computes and quantifies the micro-scale geometric complexity of a model's surface in real-time, used to dynamically enhance material details and solve specular aliasing issues, acting as a 'geometric detail detector'.
Core Advantages
Provides a dynamic, real-time method for geometric analysis that requires no pre-baked textures (like curvature maps), perfectly adapting to dynamic or procedural geometry and efficiently suppressing specular aliasing.
Common Uses
Enhancing PBR material realism (specular anti-aliasing)
As a mask for procedural weathering and dirt effects
Visualizing model curvature and geometric details in real-time
Creating geometry-based dynamic outlines
How to adjust
This node has no parameters. Its output is entirely determined by the geometry or normal map it analyzes. You can alter its result by changing the model's geometric complexity (e.g., from low-poly to high-poly) or by applying a different normal map.
Code Examples
1// Combine geometry roughness with base material roughness to suppress specular aliasing
2const totalRoughness = max( materialRoughness, getGeometryRoughness() );