Fix wrong model for light depth pass

This commit is contained in:
Lauri Räsänen 2023-04-13 18:40:26 +03:00
parent ba41da6804
commit ccfaff88bd

View file

@ -477,7 +477,7 @@ impl State {
light_depth_render_pass.set_pipeline(&self.light_depth_pass.pipeline); light_depth_render_pass.set_pipeline(&self.light_depth_pass.pipeline);
// TODO separate func // TODO separate func
light_depth_render_pass.draw_model_instanced( light_depth_render_pass.draw_model_instanced(
&self.light_model, &self.model,
0..self.instances.len() as u32, 0..self.instances.len() as u32,
&self.camera_bind_group, &self.camera_bind_group,
&self.light_bind_group, &self.light_bind_group,