From 51094b362729e21123df66c2c4ed05d212887ca5 Mon Sep 17 00:00:00 2001 From: Martin Lysell Date: Fri, 11 Jul 2025 13:40:02 +0200 Subject: [PATCH] Add ambient light effect lightmapped meshes member to Lights structure (wgsl). Making it map 1:1 with the RS version (GpuLights) --- crates/bevy_pbr/src/render/mesh_view_types.wgsl | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_pbr/src/render/mesh_view_types.wgsl b/crates/bevy_pbr/src/render/mesh_view_types.wgsl index 59789731bd..aaf9d0ef7d 100644 --- a/crates/bevy_pbr/src/render/mesh_view_types.wgsl +++ b/crates/bevy_pbr/src/render/mesh_view_types.wgsl @@ -66,6 +66,7 @@ struct Lights { cluster_factors: vec4, n_directional_lights: u32, spot_light_shadowmap_offset: i32, + ambient_light_affects_lightmapped_meshes: u32 }; struct Fog {