diff --git a/crates/bevy_pbr/src/lib.rs b/crates/bevy_pbr/src/lib.rs index 4fe6e0c29c952..22759d9f81c66 100644 --- a/crates/bevy_pbr/src/lib.rs +++ b/crates/bevy_pbr/src/lib.rs @@ -30,7 +30,10 @@ pub mod contact_shadows; #[cfg(feature = "bevy_gltf")] mod gltf; use bevy_light::cluster::GlobalClusterSettings; -use bevy_render::sync_component::SyncComponent; +use bevy_render::{ + sync_component::SyncComponent, + view::{RenderExtractedShadowMapVisibleEntities, RenderShadowMapVisibleEntities}, +}; pub use contact_shadows::{ ContactShadows, ContactShadowsBuffer, ContactShadowsPlugin, ContactShadowsUniform, ViewContactShadowsUniformOffset, @@ -437,16 +440,31 @@ pub fn stbn_placeholder() -> Image { } impl SyncComponent for DirectionalLight { - type Target = Self; + type Target = ( + Self, + ExtractedDirectionalLight, + RenderExtractedShadowMapVisibleEntities, + RenderShadowMapVisibleEntities, + ); } impl SyncComponent for PointLight { - type Target = Self; + type Target = ( + Self, + ExtractedPointLight, + RenderExtractedShadowMapVisibleEntities, + RenderShadowMapVisibleEntities, + ); } impl SyncComponent for SpotLight { - type Target = Self; + type Target = ( + Self, + ExtractedPointLight, + RenderExtractedShadowMapVisibleEntities, + RenderShadowMapVisibleEntities, + ); } impl SyncComponent for RectLight { - type Target = Self; + type Target = (Self, ExtractedRectLight); } impl SyncComponent for AmbientLight { type Target = Self;