From ccfaff88bd01d764ab4df386f6b2be0badb717f5 Mon Sep 17 00:00:00 2001 From: nullprop Date: Thu, 13 Apr 2023 18:40:26 +0300 Subject: [PATCH] Fix wrong model for light depth pass --- src/core/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/state.rs b/src/core/state.rs index 4b8fb0e..1d46c89 100644 --- a/src/core/state.rs +++ b/src/core/state.rs @@ -477,7 +477,7 @@ impl State { light_depth_render_pass.set_pipeline(&self.light_depth_pass.pipeline); // TODO separate func light_depth_render_pass.draw_model_instanced( - &self.light_model, + &self.model, 0..self.instances.len() as u32, &self.camera_bind_group, &self.light_bind_group,