migration to dynamic asset loading

This commit is contained in:
2024-07-25 00:09:27 -04:00
parent deb778d6af
commit f6e24f437a
11 changed files with 93 additions and 109 deletions

View File

@@ -9,7 +9,7 @@ use crate::shader_extensions::water_material::WaterMaterial;
#[derive(AssetCollection, Resource, Default)]
pub struct ChunkAtlas {
#[asset(path = "textures/world/Terra.png")]
#[asset(key = "chunk_atlas")]
pub handle: Handle<Image>,
pub chunk_material_handle: Handle<ExtendedMaterial<StandardMaterial, ChunkMaterial>>,
pub water_material: Handle<ExtendedMaterial<StandardMaterial, WaterMaterial>>,