AMereBagatelle / fabricskyboxes

Custom skyboxes mod for Fabric
MIT License
76 stars 22 forks source link

Change view distance via fog config #117

Open UsernameGeri opened 3 weeks ago

UsernameGeri commented 3 weeks ago

The basic idea is to be able to change the view distance via configuring the various dimensions of the fog boundary. To better explain what I mean, here's an illustration: fog The fog uses a cylindrical shape, so in order to get full control over its shape, we would need 3 separate parameters. An example configuration could look something like this:

"properties": {
  "viewDistanceRadius": 20,
  "viewDistanceBelow": 3,
  "viewDistanceAbove": 8
 }

In this example, the radius of the fog would be 20 chunks, the bottom plane would extend 3 chunks below the player, and the top plane would reach 8 chunks above the player. Ideally these values would serve as limiting factors, so they would not extend the view distance, if a lower render distance was set in the video settings.