From 5df87387110b254c6bcf8bda657cc15b3d605a9b Mon Sep 17 00:00:00 2001 From: reo Date: Sat, 5 Jul 2025 20:42:35 +0300 Subject: [PATCH] Move model files to resources/models --- resources/{ => models}/cube.bin | Bin resources/{ => models}/cube.gltf | 0 resources/{ => models}/cube.obj | 0 resources/{ => models}/monkey-smooth.bin | Bin resources/{ => models}/monkey-smooth.gltf | 0 resources/{ => models}/monkey.bin | Bin resources/{ => models}/monkey.gltf | 0 resources/{ => models}/uvsphere-smooth.bin | Bin resources/{ => models}/uvsphere-smooth.gltf | 0 resources/{ => models}/uvsphere.bin | Bin resources/{ => models}/uvsphere.gltf | 0 resources/{ => models}/uvsphere2.bin | Bin resources/{ => models}/uvsphere2.gltf | 0 src/main.rs | 2 +- 14 files changed, 1 insertion(+), 1 deletion(-) rename resources/{ => models}/cube.bin (100%) rename resources/{ => models}/cube.gltf (100%) rename resources/{ => models}/cube.obj (100%) rename resources/{ => models}/monkey-smooth.bin (100%) rename resources/{ => models}/monkey-smooth.gltf (100%) rename resources/{ => models}/monkey.bin (100%) rename resources/{ => models}/monkey.gltf (100%) rename resources/{ => models}/uvsphere-smooth.bin (100%) rename resources/{ => models}/uvsphere-smooth.gltf (100%) rename resources/{ => models}/uvsphere.bin (100%) rename resources/{ => models}/uvsphere.gltf (100%) rename resources/{ => models}/uvsphere2.bin (100%) rename resources/{ => models}/uvsphere2.gltf (100%) diff --git a/resources/cube.bin b/resources/models/cube.bin similarity index 100% rename from resources/cube.bin rename to resources/models/cube.bin diff --git a/resources/cube.gltf b/resources/models/cube.gltf similarity index 100% rename from resources/cube.gltf rename to resources/models/cube.gltf diff --git a/resources/cube.obj b/resources/models/cube.obj similarity index 100% rename from resources/cube.obj rename to resources/models/cube.obj diff --git a/resources/monkey-smooth.bin b/resources/models/monkey-smooth.bin similarity index 100% rename from resources/monkey-smooth.bin rename to resources/models/monkey-smooth.bin diff --git a/resources/monkey-smooth.gltf b/resources/models/monkey-smooth.gltf similarity index 100% rename from resources/monkey-smooth.gltf rename to resources/models/monkey-smooth.gltf diff --git a/resources/monkey.bin b/resources/models/monkey.bin similarity index 100% rename from resources/monkey.bin rename to resources/models/monkey.bin diff --git a/resources/monkey.gltf b/resources/models/monkey.gltf similarity index 100% rename from resources/monkey.gltf rename to resources/models/monkey.gltf diff --git a/resources/uvsphere-smooth.bin b/resources/models/uvsphere-smooth.bin similarity index 100% rename from resources/uvsphere-smooth.bin rename to resources/models/uvsphere-smooth.bin diff --git a/resources/uvsphere-smooth.gltf b/resources/models/uvsphere-smooth.gltf similarity index 100% rename from resources/uvsphere-smooth.gltf rename to resources/models/uvsphere-smooth.gltf diff --git a/resources/uvsphere.bin b/resources/models/uvsphere.bin similarity index 100% rename from resources/uvsphere.bin rename to resources/models/uvsphere.bin diff --git a/resources/uvsphere.gltf b/resources/models/uvsphere.gltf similarity index 100% rename from resources/uvsphere.gltf rename to resources/models/uvsphere.gltf diff --git a/resources/uvsphere2.bin b/resources/models/uvsphere2.bin similarity index 100% rename from resources/uvsphere2.bin rename to resources/models/uvsphere2.bin diff --git a/resources/uvsphere2.gltf b/resources/models/uvsphere2.gltf similarity index 100% rename from resources/uvsphere2.gltf rename to resources/models/uvsphere2.gltf diff --git a/src/main.rs b/src/main.rs index 74fda0c..7f5a5a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,7 @@ fn main() -> Result<()> { let mut time = time::Time::new(); let object_ent = { - let mesh = model::load_gltf("resources/monkey-smooth.gltf", &display)?; + let mesh = model::load_gltf("resources/models/monkey.gltf", &display)?; ecsr.spawn_mesh(mesh, Transform { translation: Vec3::ZERO, rotation: Quat::IDENTITY,