sunfall.package
- ..
- .metadata17 B
- README.md1.3 KB
- mat.yaml4.0 KB
- preview.png2.1 KB
This package holds more than this page lists. See all of its files in its world.
README.md
ridgeGround (material)
The material Sunfall Ridge's Terrain (ridge, placed by land() in scenes/main.scene/build.luau) wears: the ridgeGround shader with the landscape's own layer table and the wall, turf and outcrop settings.
A material named on a Terrain is bound the terrain surface contract (field rect, ground normal, control weights, ground masks, macro colour) and nothing of the landscape's layer table, so this material carries the table itself: layerN_tint, _size, _rule, _slices, _mean, _maskmean, _tilt The three layer_albedo / layer_normal / layer_mask texture arrays are not in this file: sunfall.dressing.GroundTable, on the same entity, binds them from the landscape's slices each time the Terrain makes its copy of this material. The numbers are copied from the stock surface the engine builds for the landscape. When the graph's surfaces change (a texture, a tint, a tiling, a layer added or reordered), copy them again: clear material in land(), let the scene rebuild, read renderer.material.describe(entity.find("ridge").component.get("Model").material) and write its layer* properties here, then set material back. The Terrain logs that this material "replaces the landscape's table": that is expected, the table is here.