render: fix lighting with more than one light
This commit is contained in:
parent
acb58a15ff
commit
7576979797
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue