An edge high-lighting and-low-lighting screen space effect for your objects, inspired by Blender's Viewport Cavity effect.
✅ Built-In (2022/6+) • ✅ URP (14+) • ✅ HDRP (14+)
Big 6.0 Update! Unity 6 is now natively supported and optimized for.
Compatibility:
• ✔ Unity 2022 / 6+.
• ✔ Standard render pipeline, forward and deferred.
• ✔ Universal Render Pipeline 14+ (Unity 2022+).
• ✔ High Definition Render Pipeline 14+ (Unity 2022+).
• Super simple to use: simply add to your camera/render-pipeline and adjust parameters.
• The effect is split into two parts:
- Control small scale highlighting with "curvature" settings,
- And larger scale highlights with "cavity" settings.
Separate settings are available, enabling you to dial in the desired effect:
- Pixel radius of curvature, its brightness in outward curves and its darkness in inward curves.
- World radius of cavity, its brightness in outward curves and its darkness in inward curves.
• As a source of screenspace normals, all three sources are available to choose from:
- G-Buffer normals, Camera normals, and Depth-reconstructed normals.
• New feature: Control the effect per-object.
- Uses a new "output to global shader texture instead of the screen" mode. Example shaders included. Feature available for Builtin[2022/6], URP[2022/6].
• Mobile Friendly: About the same cost as SSAO. Supports a Half Resolution Cavity mode for extra performance.