What is the difference between a Cavity map and an Ambient Occlusion map?
Curvature/cavity highlights sharp local ridges and micro-grooves centered at 50% gray, whereas Ambient Occlusion shadows broader recessed areas from white down to black.
Tangent Divergence Extractor
Turn any tangent-space normal map into a crisp grayscale cavity and curvature mask locally—bright on convex bevels for edge-wear masks, dark in crevices for dirt and patina shaders.
Computed tangent-space curvature/cavity mask (strength 1.60x)
| Curvature Gray Value | Surface Geometry | Shader Mask Use |
|---|---|---|
| White (200–255) | Sharp convex outer edge | Paint chipping, metal edge wear |
| Mid Gray (128 / 0.5) | Flat surface plane | Neutral base material |
| Dark Gray (0–60) | Deep concave crevice / groove | Dust, rust, grout grime, micro-AO |
By measuring the spatial divergence of the Red (dNx/dx) and Green (dNy/dy) channels across neighboring pixels, a browser shader pass isolates concave grooves and convex ridges directly from your existing normal map without needing the original high-poly 3D mesh.
If crevices appear bright white while outer edges look dark, toggle Invert Y (DirectX -Y) to flip vertical derivative polarity so convex edges highlight cleanly.
Curvature/cavity highlights sharp local ridges and micro-grooves centered at 50% gray, whereas Ambient Occlusion shadows broader recessed areas from white down to black.
Your input normal map likely uses DirectX (-Y) green channel polarity. Toggle Invert Y to flip convexity and concavity immediately.
Yes. Feed it through a ColorRamp or Levels node to isolate pure convex highlights (>0.55) for metallic edge wear.
Yes—open our Ambient Occlusion Map Generator or full PBR Texture Generator for 4-map local packs.
Optional Google Analytics
Accept loads Google Analytics 4 for traffic and conversion measurement. Reject keeps it off. Necessary first-party product events and the cookie-free pageview counter remain active. This choice never enables advertising.