Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage painterly.package·originates fromworld 0a0b119f-a…

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" p…

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

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.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

painterly.ground.ground — the painted ground on the host's engine Terrain. Makes the `~.ground.terrainGround` material (the Valley's ground paint as a terrain material), binds what a named terrain material is not given by the engine (the landscape's control textures, its rect, the geomorph band) and puts it on the Terrain entity's Model. The Terrain puts its own material back whenever it rebuilds (a reload, a re-bake): update() sets the painted one again. The host's `ground` config: { layers = { cliff = "cliff", shore = "shore", paved = "paved", earth = "earth" } } names the terrain's surface layers that are rock, sand, paving and bare earth; every other layer is meadow. `farLand = { level = metres, hills = metres, reach = metres, sea = { { x, z, radius }, ... } }` lays painted land past the Terrain's edges, with the host's far bodies of water (see below); without it the land ends at the Terrain's rect.

selection(names: { string }, wanted: any) → void

argtypedescription
names{ string }
wantedany

hash(ix: number, iz: number, seed: number) → number

argtypedescription
ixnumber
iznumber
seednumber

vnoise(x: number, z: number, seed: number) → number

argtypedescription
xnumber
znumber
seednumber

smooth(a: number, b: number, x: number) → number

argtypedescription
anumber
bnumber
xnumber

skirtMesh(hf: any, cfg: any) → any

The skirt's mesh round a heightfield's rect. cfg: { level, hills, reach, step, seaLevel, sea = { {x, z, radius} } }.

argtypedescription
hfany
cfgany

seaAt(x: number, z: number) → number

how much of a place is the host's far water: 1 well inside a body of it, 0 on land, its edge wandered

argtypedescription
xnumber
znumber

farAt(x: number, z: number, d: number) → number

the far country's own ground at a place d metres out

argtypedescription
xnumber
znumber
dnumber

heightAt(x: number, z: number, d: number, edgeH: number) → number

argtypedescription
xnumber
znumber
dnumber
edgeHnumber

vert(x: number, y: number, z: number) → number

argtypedescription
xnumber
ynumber
znumber

edgeHeight(x: number, z: number) → number

argtypedescription
xnumber
znumber

quads(grid: any, ni: number, nj: number, i0: number) → void

argtypedescription
gridany
ninumber
njnumber
i0number

side(ax: number, az: number, bx: number, bz: number, ox: number, oz: number) → void

a strip along one side: from (ax, az) to (bx, bz), outwards along (ox, oz)

argtypedescription
axnumber
aznumber
bxnumber
bznumber
oxnumber
oznumber

corner(cx: number, cz: number, ox: number, oz: number) → void

a corner: the quarter of ground between two sides' strips

argtypedescription
cxnumber
cznumber
oxnumber
oznumber

modelOf(e: any) → any

argtypedescription
eany

build(v: any) → void

argtypedescription
vany

apply( ) → void

update(vv: any, _dt: number) → void

argtypedescription
vvany
_dtnumber

destroy( ) → void

destroy(_v: any) → void

argtypedescription
_vany

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.