In materials my distance to nearest surface node always returns zero.
My distance field gradient always returns 0,0,1 as well.
I have generate mesh distance fields turned on and have turned of cast shadows on the mesh with the material.
It does this in different projects. Is there something I just don’t undertsand about using this node? I have tried to use the examples from the UE4 documentation (Utility Expressions | Unreal Engine Documentation) and also read this Tom Looman post as well (http://www.tomlooman.com/distance-fields-unreal-engine/).
Any thoughts on why I am having trouble?
My test material: