From cbe9c4a212a5777e50131e519a4f932861b2e571 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 29 Aug 2023 18:01:42 -0700 Subject: [PATCH] translation is not needed --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 426d143..68dd5ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -413,9 +413,9 @@ fn main() { ); let view = Matrix4::from_translation(pos)*Matrix4::from(angles); let scale = Matrix4::from_scale(-0.01); - +// Matrix4::from_translation(Vector3 { x: 0.0, y: 0.0, z: 0.0 }) * let uniform_data = vs::Data { - world: (Matrix4::from_translation(Vector3 { x: 0.0, y: 0.0, z: 0.0 }) * Matrix4::from(rotation) * scale).into(), + world: (Matrix4::from(rotation) * scale).into(), view: view.invert().unwrap().cast::().unwrap().into(), proj: proj.into(), };