hex-world
    Preparing search index...

    Function resolveSnowTerrain

    • The texture-array layer to draw snow from: whichever active terrain has id snow, or -1 if the pack has none (in which case snow falls back to a flat tint). The same auto-resolution riverbed gets, so a custom pack restyles winter by shipping its own snow terrain.

      Takes a structural type rather than TerrainDefinition to keep the season module free of a dependency back on geometry.

      Parameters

      • definitions: readonly { id: string; index: number }[]

      Returns number