dialog WIP paths consolidation and rendering

This commit is contained in:
Jonas H
2026-03-28 10:34:19 +01:00
parent 4c3ebca96e
commit 11b31169b1
70 changed files with 2658 additions and 485 deletions

View File

@@ -8,6 +8,7 @@ use crate::components::{MeshComponent, PhysicsComponent, TreeInstancesComponent}
use crate::entity::EntityHandle;
use crate::loaders::mesh::{InstanceData, InstanceRaw, Mesh};
use crate::loaders::terrain::load_heightfield_from_exr;
use crate::paths;
use crate::physics::PhysicsManager;
use crate::render;
use crate::world::{Transform, World};
@@ -33,8 +34,8 @@ impl TerrainConfig
pub fn default() -> Self
{
Self {
gltf_path: "meshes/terrain.gltf".to_string(),
heightmap_path: "textures/terrain_heightmap.exr".to_string(),
gltf_path: paths::meshes::terrain(),
heightmap_path: paths::textures::terrain_heightmap(),
size: Vec2::new(1000.0, 1000.0),
}
}