Hi, I have problem using the Utility Expression DistanceToNearestSurface on material, namely some clipping happened when the camera is near the material, which it shouldn’t happen. It’s apparent on the left and right box.
What I’ve done is enabling the Generate Mesh DIstance Fields in the project setting, having a movable SkyLight, and using the same example material as the unreal docs.
Hey, after digging into the UE4 code I’ve finally found where the clipping distance can be changed!
It’s very simple, in the World Settings, look for the “Global DistanceField View Distance” parameter. By default it’s 20000 units, can be changed up to 100000.