Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
gltf-test currently appears to load low dynamic range environment. This looks significantly different compared to the other engines.
This PR uses the prefiltering introduced in 1.51 to load a single equirect HDR environment map and generate skybox, reflection and ambient data at load time.
The difference is significant:
Before:
![Screenshot 2021-12-26 at 14 25 30](https://user-images.githubusercontent.com/11276292/147411109-7d3fdb5f-db1d-4d6c-b47e-5baecac2eef8.png)
After:
![Screenshot 2021-12-26 at 14 25 33](https://user-images.githubusercontent.com/11276292/147411091-45a82bfc-13da-45a5-a49d-10da5f3a0922.png)
The PR also uses linear tonemapping instead of ACES, which more closely matches the other engines.
Please note: some of the API used here is new and still flagged as internal. The API should be released soon though, perhaps with changes, in the next one or two engine releases.