The code itself isn’t really the matter though, it’s just an example, particularly to highlight this node:
It gets the distance to the nearest global distance field.
This is great, but global distance fields are very inaccurate and small objects do not generate global distance fields at all, which is a problem for me.
Is there any way to use mesh distance field instead? Which is more accurate and affects small objects?
I also tried setting the lumen software ray tracing method to detail trace (this uses mesh distance fields instead of global ones for something… Not sure what, I didn’t notice any difference)