Get light pos directly from matrices, debugging shadowmaps

This commit is contained in:
Lauri Räsänen 2023-11-04 18:15:11 +02:00
parent 2dc20ad12c
commit 5e0001e2e1
4 changed files with 49 additions and 20 deletions

View file

@ -484,6 +484,7 @@ impl State {
self.light_uniform.position =
(cgmath::Quaternion::from_angle_y(cgmath::Deg(90.0 * dt.as_secs_f32())) * old_position)
.into();
self.light_uniform.update_matrices();
self.queue.write_buffer(
&self.light_buffer,
0,