From f5101bc233a51587e8d6bf79beb1a6d3bf234ec5 Mon Sep 17 00:00:00 2001
From: pkuzic
Date: Fri, 25 Sep 2026 17:47:26 +0100
Subject: [PATCH] MONKEY (integration): keep build_light_data within Bevy's 16
system params (post + lampfog each added one)
Co-Authored-By: Claude Opus 5.5
---
crates/benilla-world/src/lighting/global_light.rs | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/crates/benilla-world/src/lighting/global_light.rs b/crates/benilla-world/src/lighting/global_light.rs
index a6bfc222..a93b71ff 100644
--- a/crates/benilla-world/src/lighting/global_light.rs
+++ b/crates/benilla-world/src/lighting/global_light.rs
@@ -1343,12 +1343,11 @@ fn build_light_data(
shadow: ShadowLanes,
// MONKEY (dynamic interiors): the interior lane's on/off + live knobs, packed for `static_gx.wgsl`.
dynamic_interiors: Res,
- // MONKEY (post): the 0/1/2 tier rides the unused `light_diffuse.w` marker.
- emissive: Res,
- // MONKEY (fire GO lights): the live gain on synthesised fire lights (0 = the lane off).
- fire_gain: Res,
- // MONKEY (spellLightGain): and the spell lane's own, which overrides it on a spell row.
- spell_gain: Res,
+ // MONKEY (integration): one tuple param, so the system stays within Bevy's 16-param limit.
+ // - MONKEY (post): the 0/1/2 tier rides the unused `light_diffuse.w` marker.
+ // - MONKEY (fire GO lights): the live gain on synthesised fire lights (0 = the lane off).
+ // - MONKEY (spellLightGain): and the spell lane's own, which overrides it on a spell row.
+ (emissive, fire_gain, spell_gain): (Res, Res, Res),
mut last_dump: Local,
mut last_rows_dump: Local,
) {