From 75769797979a4119a4bcbed907961cf7e2d5f736 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 15 Jun 2024 23:52:10 -0400 Subject: [PATCH] render: fix lighting with more than one light --- lyra-game/src/render/graph/passes/light_cull_compute.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lyra-game/src/render/graph/passes/light_cull_compute.rs b/lyra-game/src/render/graph/passes/light_cull_compute.rs index 7b5c487..e477d41 100644 --- a/lyra-game/src/render/graph/passes/light_cull_compute.rs +++ b/lyra-game/src/render/graph/passes/light_cull_compute.rs @@ -216,7 +216,9 @@ impl Node for LightCullComputePass { desc } - fn prepare(&mut self, _world: &mut World, _context: &mut RenderGraphContext) {} + fn prepare(&mut self, _world: &mut World, context: &mut RenderGraphContext) { + context.queue_buffer_write_with(LightCullComputePassSlots::IndexCounterBuffer, 0, 0); + } fn execute( &mut self,