bevy/crates/bevy_pbr/src
Patrick Walton bcfc086f3d
Include the material bind group in the shadow batch set key. (#17738)
Right now, meshes aren't grouped together based on the bindless texture
slab when drawing shadows. This manifests itself as flickering in
Bistro. I believe that there are two causes of this:

1. Alpha masked shadows may try to sample from the wrong texture,
causing the alpha mask to appear and disappear.

2. Objects may try to sample from the blank textures that we pad out the
bindless slabs with, causing them to vanish intermittently.

This commit fixes the issue by including the material bind group ID as
part of the shadow batch set key, just as we do for the prepass and main
pass.
2025-02-08 07:43:45 +00:00
..
atmosphere Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
cluster Disable clustered decals on Metal. (#17554) 2025-01-27 05:39:07 +00:00
decal Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
deferred Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
light Make the default directional light shadow cascade settings similar to those of other engines. (#17552) 2025-01-27 01:48:57 +00:00
light_probe Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
lightmap Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
meshlet Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
prepass Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
render Include the material bind group in the shadow batch set key. (#17738) 2025-02-08 07:43:45 +00:00
ssao Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
ssr Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
volumetric_fog Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
components.rs Support non-Vec data structures in relations (#17447) 2025-01-20 21:26:08 +00:00
extended_material.rs Forward decals (port of bevy_contact_projective_decals) (#16600) 2025-01-15 02:31:30 +00:00
fog.rs Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
lib.rs Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
material_bind_groups.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
material.rs Cold Specialization (#17567) 2025-02-05 18:31:20 +00:00
mesh_material.rs Cold Specialization (#17567) 2025-02-05 18:31:20 +00:00
parallax.rs
pbr_material.rs Add support for specular tints and maps per the KHR_materials_specular glTF extension. (#14069) 2025-01-26 20:38:46 +00:00
wireframe.rs Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00