Issue with distance fields - flickering in UE5.3

Hello Everyone!

I am posting because I have an issue with distance fields in Unreal Engine 5.3.

For some reason, the fields are affecting the object (plane) below them and glitching out/flickering. I have “Affect distance field lighting” disabled on the plane but enabled on the other meshes and terrain.

My SingleLayerWater material samples the “DistanceToNearestSurface”, divides it by 100, and clamps before going into the base color pin.

I have attached a gif of the bug.

Any help/guidance will be appreciated.

Thanks,
Animation

  • Cargo

Ah, the water could be picking up on the landscape…

hmm… any ideas on how to resolve?

I resolved the issue. I figured it looked like z-fighting, even though there is nothing there for the plane to intersect with. For whatever reason moving the plane from z = 0 to anything else completely stops the buggy effect. I figured 0 would be a good height for the water in my game, but I guess for now I’ll call this fixed.

Still not sure why this is happening, as my terrain is at height level 100 and also sculpted down much further.

2 Likes