diff --git a/crates/bevy_pbr/src/material.rs b/crates/bevy_pbr/src/material.rs index 34ffb930db..0cf6686b3e 100644 --- a/crates/bevy_pbr/src/material.rs +++ b/crates/bevy_pbr/src/material.rs @@ -351,9 +351,11 @@ where Render, ( check_views_lights_need_specialization.in_set(RenderSet::PrepareAssets), + // specialize_shadows:: also needs to run after prepare_assets::>, + // which is fine since ManageViews is after PrepareAssets specialize_shadows:: - .in_set(RenderSet::PrepareMeshes) - .after(prepare_assets::>), + .in_set(RenderSet::ManageViews) + .after(prepare_lights), queue_shadows:: .in_set(RenderSet::QueueMeshes) .after(prepare_assets::>),