Log inGet started
Package

sunfall.package

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

Meadow (component)

The landing meadow's grass and wildflowers: a GPU grass field drawn round the camera. Put it on one entity (the build's dressing/meadow_grass); it needs nothing else.

The shelf round Course.MEADOW is cut into 8 m tiles wherever the baked landscape lays meadow or dry grass on gentle ground. A tile's tufts and flowers are planted the first time the camera comes near it (deterministic per tile, so every peer plants the same field; up to ten tiles a frame) and kept as ready-made instance buffers. As the camera moves, the tiles in reach are joined into a handful of instanced draws: fine tufts within 22 m, coarser and sparser tufts out to 80 m, flowers within 45 m; past that the meadow turf texture carries the field. Inside the landing circle the sward is short and grazed; beyond it the grass stands knee-high and flowers gather in drifts (arnica and globeflower, gentian and campanula, edelweiss and saxifrage, cotton grass, alpine aster, and alpenrose patches toward the edges). Nothing casts shadows. The blades sway in gusts that roll across the field (grass shader).

Fields: seed, density (tufts per m² near the camera), reach (m from the meadow's centre). Methods: stats(), refresh(), suspend() / resume().