mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
A tunnel's stretch and flatness become spacing.horizontal and spacing.vertical. The bend, the width noise and the coverage patches were all derived from stretch through fixed constants; each now has its own key. warp is a noise style whose zoom sets how often a tunnel turns and whose multiplier sets how far it swings, as in object placement. A flat warp keeps tunnels straight. width is a styled range sampled in 3D, and coverage is a share plus an optional style. Left out, each falls back to what stretch used to give, so a tunnel needs only spacing. The new tunnel height turns the round cross-section into an oval. The distance to the line is measured with the vertical axis stretched by width over height, so the width stays what the pack asks for. A height equal to the width carves exactly the round tunnel. Caverns and pillars take an optional style. Size, height and spacing stay in blocks for any style: the shape measures the style's feature spacing at load and rescales it until it matches. That costs under 10 ms per cave, and a fracture keeps its distance in blocks. Pillars gain flare, which replaces the fixed foot area of 4, and vertical, which reads the pillar field in 3D on the lattice so pillars lean, pinch and break off. Without vertical the per-column cache still decides. The old keys are gone. Written with the new keys, the old caves carve block for block what they carved before, which the carver test pins for five caves, and the carve harness digest matches the old code for the same cave.