diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 6bebf4b..51c30d7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use reqwest::{ Client, header::{HeaderMap, HeaderName, HeaderValue}, }; -use std::path::PathBuf; +use std::{f32::consts::PI, path::PathBuf}; use tokio::{ fs::{File, create_dir_all}, io::{AsyncReadExt, AsyncWriteExt}, @@ -56,7 +56,8 @@ async fn main() -> Result<()> { for m in node_data.meshes { let mesh = convert_mesh(m, &store, &for_normals)?; meshes.push(( - Affine3A::from_mat4((transform / 3_000_000.).as_mat4()), + Affine3A::from_rotation_x(-PI / 2.) + * Affine3A::from_mat4((transform / 3_000_000.).as_mat4()), mesh, )) } |