diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-07 13:12:47 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-07 13:12:47 +0200 |
commit | c6fb1f9c2a7fef8da6c90fe22c2a5d8e2decf598 (patch) | |
tree | 660339df4b65d98443e7d3c0054a81ec803f86fd /src/main.rs | |
parent | 7317cfa33db2140300ea5f053ba6ff5a547fc371 (diff) | |
download | weareearth-c6fb1f9c2a7fef8da6c90fe22c2a5d8e2decf598.tar weareearth-c6fb1f9c2a7fef8da6c90fe22c2a5d8e2decf598.tar.bz2 weareearth-c6fb1f9c2a7fef8da6c90fe22c2a5d8e2decf598.tar.zst |
texture works
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, )) } |