From c9cb22be68e6269f0dda32a8ab529ec86d46c658 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 1 Sep 2023 14:57:38 -0700 Subject: [PATCH] comment on value --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1115de2..0e9bcde 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,7 +100,7 @@ impl Camera { raw[16..32].copy_from_slice(&AsRef::<[f32; 16]>::as_ref(&proj_inv)[..]); raw[32..48].copy_from_slice(&AsRef::<[f32; 16]>::as_ref(&view)[..]); raw[48..51].copy_from_slice(AsRef::<[f32; 3]>::as_ref(&self.pos)); - raw[51] = 1.0; + raw[51] = 1.0;//cam_pos is vec4 raw } }