use super::*;
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct TerrainConfig {
#[get(type(copy))]
pub(crate) grid_x: u32,
#[get(type(copy))]
pub(crate) grid_z: u32,
#[get(type(copy))]
pub(crate) world_size_x: f32,
#[get(type(copy))]
pub(crate) world_size_z: f32,
#[get(type(copy))]
pub(crate) height_scale: f32,
#[get(type(copy))]
pub(crate) seed: u64,
#[get(type(copy))]
pub(crate) fbm_octaves: u32,
#[get(type(copy))]
pub(crate) fbm_frequency: f32,
#[get(type(copy))]
pub(crate) fbm_lacunarity: f32,
#[get(type(copy))]
pub(crate) fbm_persistence: f32,
#[get(type(copy))]
pub(crate) ridged_weight: f32,
#[get(type(copy))]
pub(crate) canyon_weight: f32,
#[get(type(copy))]
pub(crate) terrace_steps: u32,
#[get(type(copy))]
pub(crate) terrace_strength: f32,
#[get(type(copy))]
pub(crate) hydraulic_droplets: u32,
#[get(type(copy))]
pub(crate) thermal_iterations: u32,
#[get(type(copy))]
pub(crate) talus_angle: f32,
#[get(type(copy))]
pub(crate) biome: TerrainBiome,
}
#[derive(Clone, Data, Debug, PartialEq)]
pub struct HeightfieldTerrain {
#[get(type(copy))]
pub(crate) grid_x: u32,
#[get(type(copy))]
pub(crate) grid_z: u32,
#[get(type(copy))]
pub(crate) world_size_x: f32,
#[get(type(copy))]
pub(crate) world_size_z: f32,
pub(crate) heights: Vec<f32>,
pub(crate) splat_weights: Vec<[f32; 4]>,
pub(crate) vertex_colors: Vec<[u8; 4]>,
pub(crate) normal_map: Vec<[u8; 4]>,
#[get(type(copy))]
pub(crate) min_height: f32,
#[get(type(copy))]
pub(crate) max_height: f32,
}