From c6fb1f9c2a7fef8da6c90fe22c2a5d8e2decf598 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 7 Apr 2025 13:12:47 +0200 Subject: texture works --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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, )) } -- cgit v1.2.3-70-g09d2