-
Notifications
You must be signed in to change notification settings - Fork 15
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
Occlusion culling #10
base: main
Are you sure you want to change the base?
Conversation
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.
Looking good! Just needs a few changes.
Cargo.toml
Outdated
default-features = false | ||
features = ["bevy_asset", "bevy_core_pipeline", "bevy_render", "x11"] | ||
|
||
[patch."crates-io"] | ||
bevy = { path = "../bevy" } |
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.
We should figure out what to do about this. If we need upstream bevy changes, let's make a PR and get this repo pointing to the branch.
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.
Blocked on bevyengine/bevy#6815
Occlusion culling implementation. We take the z-buffer from last frame, generate a mipmap for it, and for each primitive we can test them against the HiZ buffer and discard them as needed.
Note that the
TEXTURE_BINDING
usage must be added to bevy when creating the depth texture. This is going to be a separate PR into bevy.