· Midnight Outpost Team · Devlog · 2 min read
Devlog #10 — Grass Rework
Every zone now has living grass — individual tufts that sway in the wind and sort correctly with the player. The world feels a lot more alive.

The world needed more life. It has it now.
From Tilemap to Tufts
The old grass was a TileMapLayer with a wind shader applied to the whole layer — it looked okay, but every tile moved in lockstep and the player always rendered on top of it. No depth, no sense that the grass existed in the same space as you.
The new system replaces the painted tilemap with individual grass tuft scenes — small Node2D instances scattered procedurally across each zone’s ground tiles. Each tuft has its own shader, its own position, and its own place in the y-sort stack. Walk north through a field and the grass will appear in front of you. Walk south through the same field and it falls behind.
Wind Shader
Each tuft uses a custom grass_tuft.gdshader that keeps the base of the blade locked to the ground while letting the top sway. The bottom half of the sprite is completely frozen — no sliding roots, no floating blades. Only the upper portion moves, responding to a layered wave function with an occasional gust on top.
The wind parameters are tuned per zone. Forest and plains get a fuller sway. Ocean shores get a lighter, faster flutter. Dense zones are somewhere in between.
Blue Herbs
The dense empty zone now has a second layer of blue wildflowers scattered at lower density over the existing grass. Same wind shader, different sprite, slightly softer movement. It makes that zone feel distinctly different from the open plains without adding complexity to the zone script.
Zone Coverage
Every zone in the world now has tufts: the outpost surroundings, forest, mine, lake shore, plains, village, cave exit area, all eight ocean border zones, and the three empty flavours. The farming plots in the plains exclude grass properly — tilling a cell with the hoe clears any overlapping tufts at the same time.
The old grass TileMap and its wind shader have been removed from the project entirely.


