Skip to content

Occlusion culling#10

Open
PixelDust22 wants to merge 19 commits into
mainfrom
neo/two-pass-occlusion-culling
Open

Occlusion culling#10
PixelDust22 wants to merge 19 commits into
mainfrom
neo/two-pass-occlusion-culling

Conversation

@PixelDust22
Copy link
Copy Markdown
Contributor

@PixelDust22 PixelDust22 commented Nov 30, 2022

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.

Copy link
Copy Markdown
Collaborator

@bonsairobo bonsairobo left a 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.

Comment thread Cargo.toml Outdated
features = ["bevy_asset", "bevy_core_pipeline", "bevy_render", "x11"]

[patch."crates-io"]
bevy = { path = "../bevy" }
Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/vertex_pulling/primitive_visibility.rs Outdated
Comment thread src/vertex_pulling/view.rs Outdated
Comment thread src/vertex_pulling/vertex_pulling.wgsl Outdated
Comment thread src/vertex_pulling/vertex_pulling.wgsl Outdated
Comment thread src/vertex_pulling/vertex_pulling.wgsl Outdated
Comment thread src/vertex_pulling/vertex_pulling.wgsl
Comment thread src/vertex_pulling/vertex_pulling.wgsl Outdated
Comment thread src/vertex_pulling/vertex_pulling.wgsl Outdated
Comment thread src/vertex_pulling/vertex_pulling.wgsl Outdated
Comment thread src/vertex_pulling/vertex_pulling.wgsl Outdated
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.

2 participants