bevy/crates/bevy_pbr/src
Joona Aalto a2b53d46e7
Fix meshlet materials (#15755)
# Objective

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


![broken](https://github.com/user-attachments/assets/9e9f20ec-b820-44df-b961-68a1dee44002)

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](https://github.com/user-attachments/assets/adb42556-fd4b-4000-8ca8-1356250dd532)
2024-10-09 15:39:10 +00:00
..
cluster fix: Skip some rendering logics when the viewport width or height is zero (#15654) 2024-10-08 22:52:19 +00:00
deferred Fix deferred rendering (#15656) 2024-10-04 22:51:23 +00:00
light Synchronize removed components with the render world (#15582) 2024-10-08 22:23:17 +00:00
light_probe Migrate reflection probes to required components (#15737) 2024-10-08 23:59:27 +00:00
lightmap Migrate meshes and materials to required components (#15524) 2024-10-01 21:33:17 +00:00
meshlet Fix meshlet materials (#15755) 2024-10-09 15:39:10 +00:00
prepass Synchronize removed components with the render world (#15582) 2024-10-08 22:23:17 +00:00
render Synchronize removed components with the render world (#15582) 2024-10-08 22:23:17 +00:00
ssao Synchronize removed components with the render world (#15582) 2024-10-08 22:23:17 +00:00
ssr Migrate reflection probes to required components (#15737) 2024-10-08 23:59:27 +00:00
volumetric_fog Synchronize removed components with the render world (#15582) 2024-10-08 22:23:17 +00:00
bundle.rs Synchronize removed components with the render world (#15582) 2024-10-08 22:23:17 +00:00
extended_material.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
lib.rs Synchronize removed components with the render world (#15582) 2024-10-08 22:23:17 +00:00
material.rs Fix meshlet materials (#15755) 2024-10-09 15:39:10 +00:00
mesh_material.rs Remove thiserror from bevy_pbr (#15767) 2024-10-09 14:25:16 +00:00
parallax.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
pbr_material.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
wireframe.rs Revert "Have EntityCommands methods consume self for easier chaining" (#15523) 2024-10-02 12:47:26 +00:00