Skip to content

Worldgen Phase 1: apply BiomeDefinition TerrainModifier during height shaping #650

@MichaelFisher1997

Description

@MichaelFisher1997

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions