DistanceToNearestSurface "snaps" brighter if camera is near

Hey there,
I’m using the DistanceToNearestSurface for a material, but I encounter a weird problem. To show this, I hooked the distance field up directly to Base Color (my material is translucent, Opacity is not set here).

How it should look (camera is more far away):

If I move my camera a bit more towards the plane:

There’s no transition, it instantly “snaps” to the bright version. In my full material, I multiple the distance field with some masks to overlay a grid, but the grid is getting much brighter if the camera is close, which looks weird. Any ideas?

Thank you!

I tried disabling my exponential height fog, and the problem seems gone. However, I need the fog :frowning: