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

Only rebuild shaders on sky rotation change if changing away from identity #5467

Merged
merged 4 commits into from Jul 13, 2023

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Jul 7, 2023

Fixes #5458

Don't rebuild shaders if rotation changes, only if it changes and it was identity before, which requires shaders to be re-generated to include support for rotation, which is excluded when identity.

@mvaligursky mvaligursky self-assigned this Jul 7, 2023
@mvaligursky mvaligursky added the area: graphics Graphics related issue label Jul 7, 2023
src/scene/scene.js Outdated Show resolved Hide resolved
@mvaligursky mvaligursky merged commit cba97fd into main Jul 13, 2023
7 checks passed
@mvaligursky mvaligursky deleted the mv-skyrotation-shaders branch July 13, 2023 15:03
mvaligursky added a commit that referenced this pull request Jul 17, 2023
…ntity (#5467)

* Only rebuild shaders on sky rotation change if changing away from identity

* update based on comment

* lint

---------

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting Scene#skyBoxRotation invalidates all shader variants
2 participants