Screen-space cavity shader to highlight edges, cavities and corners.
Perfect to liven up low poly models and make them pop.Only works with the Universal Render Pipeline.With Cavity you can easily render a screen-space cavity effect to highlight edges, cavities and corners. This is perfect to liven up low poly models and make them pop. Documentation | Bluesky✅ Easy to use.Just add a single renderer feature and you're done! ✅ Masking and fading.The effect works as a screen-space effect by default, but you can exclude/include objects as you wish so not everything needs to be affected.✅ Fading.You can fade the effect by height/distance as to not clutter the scene visually.✅ Optimized.The shaders were handwritten from scratch for maximum performance. In addition, Render Graph and the SRP batcher are leveraged.✅ Configurable.A lot of work has gone into making the asset as customizable as possible to suit your needs while not being overwhelming. Every option is clearly explained with a tooltip and with a custom editor UI everything is neatly organized.FeaturesSupport for Unity 6+, Unity 2022.3 and URP and compatibility modeScreen space cavity effect for rendering curvature/cavityControls for highlighting ridges/valleys in your modelsOption to render curvature/cavity separately and control their strengthOption to fade the effect by distance and/or height as to not clutter the scene visuallyYou can easily limit the effect to render for only certain objectsCustom editor UI and settings for easy configuration of the effectFull source code includedExtensive documentationGreat supportCompatibilityCavity is compatible with Unity 6+ or Unity 2022.3 using rendergraph or compatibility mode and the Universal Render Pipeline. Other combinations are not supported. PlatformsCavity should work on all platforms but is untested on mobile and VR. Contact me if you bump into any issues and I'll gladly resolve them.More information at https://ameye.dev/screen-space-cavity.The environments used in the promotional artwork are `Low Poly Environment` from `Sky Den Games`. They are not included in this asset but you can download them for free from the asset store. Cavity contains a screen-space cavity/curvature effect. This effect can be added as renderer features to your URP renderer.Screen space cavity effect for rendering curvature/cavityControls for highlighting ridges/valleys in your modelsOption to render curvature/cavity separately and control their strengthOption to fade the effect by distance and/or height as to not clutter the scene visuallyYou can easily limit the effect to render for only certain objectsCustom editor UI and settings for easy configuration of the effectFull source code included