-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 ClearColor in 2d pipelines #13378
Fix ClearColor in 2d pipelines #13378
Conversation
Why transparent, and not opaque? This is also unfortunate because render passes cost a good amount of performance, although for 2d it shouldn't matter too much. |
Because not enough people have reviewed my opaque 2d work yet #13069 |
This appears to have the same root cause as #13383. @IceSentry is working on a fix. |
@alice-i-cecile this is the only fix needed, so this can be merged |
The real fix will be to have an opaque pass, but that's a lot more work since my PR I shared above needs a ton more work on top of it. |
Actually, @pietrosophya could you add the Like this: if !transparent_phase.items.is_empty() {
transparent_phase.render(&mut render_pass, world, view_entity);
} Realistically, it doesn't really matter because that means it's just running an empty scene anyway, but it still makes a bit more sense. |
Head branch was pushed to by a user without write access
Done! 😉 |
Awesome, thank you all very much! Nice to clean up one of the larger open bugs in the milestone. |
Objective
Solution
Testing
clear_color
example