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

Fix meshlet materials #15755

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Jondolf
Copy link
Contributor

@Jondolf Jondolf commented Oct 9, 2024

Objective

After #15524, there are these bunny-shaped holes in rendering in the meshlet example!

broken

This is because (1) they're using a raw asset handle instead of MeshMaterial3d, and (2) the system that extracts mesh materials into the render world has an unnecessary With<Mesh3d> filter, which makes it not account for meshlets.

Solution

Remove the redundant filter and use MeshMaterial3d. The bunnies got some paint!

fixed

@Jondolf Jondolf added C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 9, 2024
@Jondolf Jondolf added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 9, 2024
examples/3d/meshlet.rs Outdated Show resolved Hide resolved
@JMS55
Copy link
Contributor

JMS55 commented Oct 9, 2024

We also need to make sure ResourceManager::previous_depth_pyramids is working properly. It should not be recreating a texture every frame for each views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants