This commit is contained in:
yuni 2024-03-20 21:12:37 +01:00
parent 64ceece0df
commit ac0a57b9b1

View file

@ -16,19 +16,16 @@ const ASTEROID_SIZE: f32 = 100.0;
//const ASSET_CUBEMAP: &str = "textures/cubemap-fs8.png"; //const ASSET_CUBEMAP: &str = "textures/cubemap-fs8.png";
//const ASSET_CUBEMAP_AR: &str = "textures/out.png"; //const ASSET_CUBEMAP_AR: &str = "textures/out.png";
const ASSET_ASTRONAUT: &str = "external/alien.glb#Scene0";
const ASSET_ASTEROID1: &str = "models/asteroid.glb#Scene0"; const ASSET_ASTEROID1: &str = "models/asteroid.glb#Scene0";
const ASSET_ASTEROID2: &str = "models/asteroid2.glb#Scene0"; const ASSET_ASTEROID2: &str = "models/asteroid2.glb#Scene0";
const ASSET_PIZZERIA: &str = "models/pizzeria.glb#Scene0";
const ASSET_JUPITER: &str = "models/jupiter.glb#Scene0";
fn asset_name_to_path(name: &str) -> &'static str { fn asset_name_to_path(name: &str) -> &'static str {
match name { match name {
"suit" => ASSET_ASTRONAUT, "suit" => "external/alien.glb#Scene0",
"jupiter" => ASSET_JUPITER, "jupiter" => "models/jupiter.glb#Scene0",
"asteroid1" => ASSET_ASTEROID1, "asteroid1" => ASSET_ASTEROID1,
"asteroid2" => ASSET_ASTEROID2, "asteroid2" => ASSET_ASTEROID2,
"pizzeria" => ASSET_PIZZERIA, "pizzeria" => "models/pizzeria.glb#Scene0",
_ => ASSET_ASTRONAUT, _ => "external/alien.glb#Scene0",
} }
} }