I’m trying to find a way to recreate Blender’s Cavity shader in Unreal Engine, but haven’t found or done anything so far
does anyone know how to make this kind of effect in Unreal Engine?
example of how Cavity shader looks like in Blender, the edges
I would love this feature as well. The realtime ridge and cavity shading in Blender looks amazing on stylized low poly meshes!
Offline renderers have access to much more information about their neighboring verts and pixels than a realtime renderer has - which is why true real time cavity/curvature mapping is unfortunately technically unfeasible. Screen space approximations have been developed - but like all screen space effects these have problems.
The best solution is to simply bake the curvature data into vertex colors or something easily accessible in the shader. It is very easy and inexpensive to do.