Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 7f138801-7…

meadow

Entry of the meadow part of Painted Valley (port of lib/blades.js, flowers.js, ground.js, state.js, valley/strokes.js and dressing.js; blendi/painted-valley, MIT): build/update/destroy for the Valley driver; draws the grass blades, flowers, painted ground, stones and seed fluff a…

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

paintedValley.meadow.meadow

Entry of the meadow part of Painted Valley (port of lib/blades.js, flowers.js, ground.js, state.js, valley/strokes.js and dressing.js; blendi/painted-valley, MIT): build/update/destroy for the Valley driver; draws the grass blades, flowers, painted ground, stones and seed fluff around the camera, remembers trodden grass (bend, setPusher, reset), provides the brushwork texture tStrokes and the stones' collision list solid.

Interface

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

conforms to

zero/source-extract/v2

paintedValley.meadow.meadow: the meadow of Painted Valley (blendi/painted-valley on Patch, MIT), the heart of its look: the ground under the grass, the grass, the flowers in drifts, the field's memory of being trodden, the brushwork every part paints with, the stones lying in the grass and the seed fluff on the wind. Ported from lib/ground.js, lib/blades.js, lib/flowers.js, lib/state.js (bend, tread, pushers), lib/index.js (createField's wiring and field.update), valley/strokes.js and valley/dressing.js, with main.js's options: createField({ size: 256, density: 1 ("high"), height: 0.5, seed: 3 }), setWind(atan2(HERO.z, HERO.x) + 0.9, 4.5), createFluff(field, 320), createStones(field). The core's scene driver calls build / update / destroy. meadow.bend(x, z, radius, dx, dz, amount) flatten the grass (a foot, a landing) meadow.setPusher(slot, x, y, z, radius) something standing in the grass that the blades part round meadow.setWind(angle, speed) the wind the grass leans in (core.set("uWind") everywhere) meadow.reset() everything back as it grew meadow.solid the big stones: { x, z, gap } to walk round meadow.heightAt(x, z) the ground under the grass (core.groundAt)

vec3(p: any) → void

argtypedescription
pany

build(v: any) → void

argtypedescription
vany

material(shader: string, key: string, render: any, props: any, field: boolean?) → void

argtypedescription
shaderstring
keystring
renderany
propsany
fieldboolean?

dropMaterial(key: string) → void

argtypedescription
keystring

tread(p: any, dt: number) → void

argtypedescription
pany
dtnumber

update(v: any, dt: number) → void

Every frame (field.update): the tiles under the camera, the walker's tread, the field's memory moving on.

argtypedescription
vany
dtnumber

bend(x: number, z: number, radius: number?, dx: number?, dz: number?, amount: number?) → void

Flatten the grass round (x, z) (field.bend).

argtypedescription
xnumber
znumber
radiusnumber?
dxnumber?
dznumber?
amountnumber?

setPusher(slot: number, x: number, y: number, z: number, radius: number) → void

Something standing in the grass that the blades part round: slot 0 to 5, its centre and radius. radius 0 clears it.

argtypedescription
slotnumber
xnumber
ynumber
znumber
radiusnumber

setWind(angle: number, speed: number, gust: number?) → void

Wind from a compass angle in radians (the direction it blows towards, round Y) at `speed` m/s (field.setWind).

argtypedescription
anglenumber
speednumber
gustnumber?

reset( ) → void

Everything back as it grew (field.reset).

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

The ground's height at (x, z), exactly where the grass stands on it (field.heightAt).

argtypedescription
xnumber
znumber

destroy(_v: any) → void

argtypedescription
_vany

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

14items
·
computeshader · born here
❒asset
The meadow's memory of being trodden (Painted Valley lib/state.js): reset, this frame's bends and the slow standing up (scan), as passes between the two RGBA8 state textures (src read, dst written; a jobs buffer says what to do). Its result is tState, which the blades and flowers read.
▲ 0↑ born
backing path · paintedValley/meadow/meadow.module

Problems

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

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬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.