How to create a cavity effect like in Blender

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Reitmania

Hey folks,

I’d like to visualize my low poly models in Godot similar to the effects of Blender cavity (world and screen) as you can see here:

Any ideas how to do that? Thanks for your help.


:bust_in_silhouette: Reply From: Calinou

The best way to achieve this in a real-time-friendly manner would be to unwrap the mesh and bake the curvature texture in Blender to use it as an albedo (or detail) texture in Godot. You can define the texture in question in a SpatialMaterial.