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

Update PlayCanvas env lighting #512

Merged
merged 1 commit into from
Dec 26, 2021
Merged

Update PlayCanvas env lighting #512

merged 1 commit into from
Dec 26, 2021

Conversation

slimbuck
Copy link

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

After:
Screenshot 2021-12-26 at 14 25 33

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.

@cx20 cx20 merged commit 19c0582 into cx20:master Dec 26, 2021
@cx20
Copy link
Owner

cx20 commented Dec 26, 2021

@slimbuck Thank you for your wonderful PR. This is a Christmas present for me.

@slimbuck
Copy link
Author

This is such an amazing tool and resource @cx20. Thanks so much all the hard work you've put into it!!

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

Successfully merging this pull request may close these issues.

None yet

2 participants