-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Clean up 2d render phases #12982
Clean up 2d render phases #12982
Conversation
ace2d1e
to
df23a13
Compare
75131d7
to
ddba1fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, simple changes and I ran a bunch of the 2D examples on Linux and everything still worked.
crates/bevy_core_pipeline/src/core_2d/main_transparent_pass_2d_node.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New to Bevy, but this seems relatively straight forward 👍
Objective
Currently, the 2d pipeline only has a transparent pass that is used for everything. I want to have separate passes for opaque/alpha mask/transparent meshes just like in 3d.
This PR does the basic work to start adding new phases to the 2d pipeline and get the current setup a bit closer to 3d.
Solution
ViewNode
forMainTransparentPass2dNode
Node2d::StartMainPass
,Node2d::EndMainPass
Changelog
Node2d::StartMainPass
,Node2d::EndMainPass
Migration Guide
If you were using
Node2d::MainPass
to order your own custom render node. You now need to order it relative toNode2d::StartMainPass
orNode2d::EndMainPass
.