Get light pos directly from matrices, debugging shadowmaps
This commit is contained in:
parent
2dc20ad12c
commit
5e0001e2e1
4 changed files with 49 additions and 20 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue