How do you get rid of fog in Minecraft realms?

How do you get rid of fog in Minecraft realms?
How to Turn Off Fog in Minecraft 1.18

Go to Aternos webpage.
Now go to the server you play in.
Now click on “Files”.
Now select “server.
Now increase the value for “view-distance”.
This will fix the render distance fog in Minecraft 1.18.
Now you will be able to see more of your map, just like before the update.

How to Turn Off Fog in Minecraft 1.18
  1. Go to Aternos webpage.
  2. Now go to the server you play in.
  3. Now click on “Files”.
  4. Now select “server.
  5. Now increase the value for “view-distance”.
  6. This will fix the render distance fog in Minecraft 1.18.
  7. Now you will be able to see more of your map, just like before the update.