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

use fewer shaders #3045

Merged
merged 1 commit into from Dec 11, 2021
Merged

use fewer shaders #3045

merged 1 commit into from Dec 11, 2021

Conversation

elalish
Copy link
Collaborator

@elalish elalish commented Dec 11, 2021

While debugging WebXR mode I noticed we were recompiling some shaders that shouldn't. A couple of small fixes:

  1. The placement box is transparent and was double-sided, which was causing it to be rendered twice (with two different shaders).
  2. The shadow is turned off in AR until the model is set on the floor. Turning off the shadow recompiles the shader, so instead I turn it to a small (invisible) value.

@elalish elalish self-assigned this Dec 11, 2021
@elalish elalish requested review from samaneh-kazemi and a user December 11, 2021 00:21
@elalish elalish merged commit b7befad into master Dec 11, 2021
@elalish elalish deleted the recompile branch December 11, 2021 00:57
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

1 participant