Fog with custom pixel perfect shader

Thanks for looking into this!
The fog works now, but the mesh seems to lose the ‘pixel perfect’ effect (you can see if when zooming out a bit and comparing to the sprite - see original thread: here).
Can the shader be edited to keep this effect and the fog?