Hello! I am trying to figure out a way to get a simple gradient along where my meshes intersect.
Basically I am trying to make a dynamic dirt mask, so that by merging my gradient and a dirt mask, I can get dirt in creases etc, without having to hand paint every single possible mesh placement combination.
I am aware of distance fields, but find them very inaccurate and prone to errors. Objects using distance fields also cannot make distance fields themselves, which pretty much ruins their use for me.
Using a depth node sort of kind of works, but not really, as it depends on there being an underlying mesh that’s placed well enough.
Do you have any suggestions on how to generate a map that’s brighter the closer to another surface it is?