Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change view distance via fog config #117

Open
UsernameGeri opened this issue Jun 16, 2024 · 0 comments
Open

Change view distance via fog config #117

UsernameGeri opened this issue Jun 16, 2024 · 0 comments

Comments

@UsernameGeri
Copy link

UsernameGeri commented Jun 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant