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