Covers [minX, maxX] × [minZ, maxZ] with square texels of texel metres (at most maxTexels per side).
ReadonlydataRaw RGBA bytes, width × height texels.
ReadonlyheightTexels along Z.
ReadonlyminWorld X of the west edge.
ReadonlyminWorld Z of the north (−Z) edge.
ReadonlytexelTexel size in metres.
Increases on every change, so renderers know when to upload.
ReadonlywidthTexels along X.
Stands every stalk back up.
Flattened amount (0 standing … 1 flat) of the texel containing (x, z); 0 outside the map.
Flattens a disk of radius metres around (x, z), with an antialiased one-texel rim. Corn falls along
(dirX, dirZ) (the direction of travel), splayed outwards towards the rim; with no direction it falls straight
outwards. Returns whether anything changed.
Where corn has been flattened, and which way it fell: a world-space grid over the fields, RGBA bytes per texel (R = amount 0..255, G/B = fall direction x/z mapped from [-1, 1], A = 255). It only ever grows: corn that was driven over stays down. Row 0 is at
minZ; texel (i, j) is centred onminX + (i + 0.5) * texel.