From c5f9a30c1b0ca25fd18bb1a789ada3f94202bba8 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 16 Sep 2024 15:03:18 -0700 Subject: [PATCH] graphics --- src/graphics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics.rs b/src/graphics.rs index 13aa507..6a13b11 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -219,7 +219,7 @@ impl GraphicsState{ //wow let instance=GraphicsModelOwned{ transform:model.transform.into(), - normal_transform:Into::::into(model.transform.matrix3).inverse().transpose(), + normal_transform:glam::Mat3::from_cols_array_2d(&model.transform.matrix3.to_array().map(|row|row.map(Into::into))).inverse().transpose(), color:GraphicsModelColor4::new(model.color), }; //get or create owned mesh map