Parent: #646
Phase
Phase 1: Terrain modifier integration
Goal
Wire BiomeDefinition.terrain into height generation so biome metadata has structural impact, not just surface/vegetation impact.
Tasks
- Decide where preliminary biome/family selection occurs before final height shaping.
- Apply
height_amplitude, smoothing, clamp_to_sea_level, and height_offset in a deterministic order.
- Avoid circular instability where height changes cause biome flips causing height changes.
- Keep ocean/coast hard decisions stable.
- Add or update tests for modifier application.
Acceptance Criteria
- Swamp-like modifiers can flatten/clamp terrain near sea level.
- Mountain-like modifiers can amplify terrain without breaking peak compression.
- Existing generation remains deterministic for fixed seeds.
nix develop --command zig build test passes.
Dependencies
- Should follow Phase 0 selector/modifier tests.
Parallelization
This is the main serial integration task for Phase 1. Tuning issues can run after this lands.
Parent: #646
Phase
Phase 1: Terrain modifier integration
Goal
Wire
BiomeDefinition.terraininto height generation so biome metadata has structural impact, not just surface/vegetation impact.Tasks
height_amplitude,smoothing,clamp_to_sea_level, andheight_offsetin a deterministic order.Acceptance Criteria
nix develop --command zig build testpasses.Dependencies
Parallelization
This is the main serial integration task for Phase 1. Tuning issues can run after this lands.