I have to come up with a dynamic AO solution in the ~1 meter (3 feet) range for gameplay purposes: I have to indicate how far the dynamic hero item is from the static geometry even when in shadow from direct light sources. (Lightmapped environment with a stationary sun.)
Doesn’t have to work for more than one item in the scene. (Although that would be nice.)
Doesn’t have to be physically correct, so I don’t care if it darkens directly lit areas.
Should affect static geometry. (Affecting dynamic actors is a plus.)
The effect’s strength should be tweakable.
So far I tried negative lights but while I can clamp negative colors in post I can’t fix the pitch black hotspots and can’t exclude the hero item from the effect.
Would it be possible to use the mesh distance field for this? I’m not afraid of some light C++ use but definitely not ready to write some new component or something.