generate terrain height as Rivers' GenTerra does

98.2% of stored columns match exactly; the rest is the dry seabed
raise and surface caves, both later passes that the strata never see.
GenTerra thresholds the new terrain noise through the old tanh curve's
inverse, and matching that quirk is what moved it from 87%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 19:10:54 +03:00
parent 517d279c8d
commit c4c7ab9968
10 changed files with 1248 additions and 33 deletions

View File

@@ -9,6 +9,16 @@ the whole token as a symbol and the leading =-= is mangled like any
other. =(- INFINITY)= works. Negative literals like =-1= are fine, so
it's only symbolic constants, but the mangled name reads like a typo.
* A cast of a bitwise expression loses its parentheses
=(cast (c-bit-or xn 1) float)= emits =(float)xn | 1=, which C reads as
=((float)xn) | 1=: a compile error here, but with an integer target
type it would silently cast only =xn=. Arithmetic operands are
parenthesized; bitwise ones aren't. With the two entries below, that
makes three places where operator precedence leaks into the output.
In this project they have cost more time than every other entry put
together, mostly through =(if ...)= in arithmetic, which keeps coming
back because it reads so naturally.
* A cast as the object of =.= loses its parentheses
=(. (cast pa (* const wanted)) distance)= emits
=(const wanted *)pa->distance=, which C reads as a cast of