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

Fix cubeMapRotation uniform #4748

Merged
merged 2 commits into from
Oct 13, 2022
Merged

Conversation

slimbuck
Copy link
Member

This PR fixes an issue where reflections seemingly disappear when the sky is disabled.

The issue was the skybox rotation matrix not ever being set - resulting in a null rotation matrix and no reflections.

This PR calculates the scene's skybox rotation directly in the scene and sets it once on the uniforms in the forward renderer.

Also, skyboxIntensity is now updated even if sky was null.

@slimbuck slimbuck added bug area: graphics Graphics related issue labels Oct 13, 2022
@slimbuck slimbuck requested a review from a team October 13, 2022 17:53
@slimbuck slimbuck self-assigned this Oct 13, 2022
@slimbuck slimbuck merged commit 01bff92 into playcanvas:main Oct 13, 2022
@slimbuck slimbuck deleted the reflection-fix branch October 13, 2022 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants