This server side Fabric mod fixes the fog when having a higher render distance on the client than on the server.
The server tricks the client into thinking that it has the same render distance as the client.
Server render distance 10, client render distance 16
Server render distance 10, client render distance 16