Log inGet started
Package

ground.module

README.md

ground

This module manages the painted ground on the host's engine Terrain, applying the ~.ground.terrainGround material. It binds control textures, the landscape's rect, and geomorph band information to the Terrain entity's Model. The module also handles the rendering of "far land" past the Terrain's edges, creating a skirt mesh that extends the landscape with rolling hills or bodies of water based on the host's configuration. It provides functions to build and destroy the ground representation, and its update function ensures the painted material is reapplied if the Terrain rebuilds its mesh. The host's ground configuration defines surface layers (cliff, shore, paved, earth) and parameters for the far land (level, hills, reach, sea). This module is crucial for creating a continuous and visually consistent ground surface in the painterly world.