Skip to content

Environment parameters are being reset #40

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

Open
jellehak opened this issue Oct 20, 2021 · 0 comments
Open

Environment parameters are being reset #40

jellehak opened this issue Oct 20, 2021 · 0 comments

Comments

@jellehak
Copy link

First of all really nice library, much faster and easier to use than the other globe libraries 👍

Describe the bug
The environment parameters are being reset after sometime when using Procedural.displayLocation

To Reproduce
Steps to reproduce the behaviour:

     // Environment
    const environment = {
      title: 'custom',
      parameters: {
        inclination: 0.6,
        fogDropoff: 0
      }
    }
    Procedural.setEnvironment(environment)
    const location1 = { latitude: 52.3676, longitude: 4.9041 }
    const location2 = { latitude: 45.8326364, longitude: 6.8564201 }
    Procedural.displayLocation(location2);
    setTimeout(()=> {
      Procedural.displayLocation(location1);
// Fog comes back in play here
    }, 5000)

Expected behaviour
Expected is that the environment parameters would stay the same.

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