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

far

Entry of the far land part (port of horizon.js, floor.js, farwoods.js): build/update/destroy for the Valley driver; provides tFloor and uFloor to every material, draws the plain out to 6 km, the far woods' cards and the mill.

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

paintedValley.far.far

Entry of the far land part (port of horizon.js, floor.js, farwoods.js): build/update/destroy for the Valley driver; provides tFloor and uFloor to every material, draws the plain out to 6 km, the far woods' cards and the mill.

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.far.far: the far land, the valley's plain past the walk out to six kilometres: Painted Valley's horizon.js, floor.js and farwoods.js (blendi/painted-valley on Patch, MIT), as one part of the valley. local far = require("paintedValley.far.far") far.build(v) -- the floor picture (tFloor + uFloor/uFloorInv for everyone), the plain, the far woods, the mill far.update(v, dt) -- the mill's sails, turning with the wind (farWoods.update(dt, windSpeed)) far.destroy(v) What main.js does with these parts, this does: field.uniforms.tFloor = createFloor(paintFloor(1536)); uFloor = (HERO.x, HERO.z, FLOOR.u0, FLOOR.v0); uFloorInv = 1 / FLOOR.size; scene.add(createHorizon(field, EXTENT / 2), farWoods.group); farWoods.update(dt, wind.speed) every frame. Everything is drawn at runtime on each peer (it is deterministic): instanced draws, no entities.

texRef(t: any) → any

argtypedescription
tany

bindOwn(key: string, slot: string, tex: any) → void

Binds one of this part's own textures (not a shared one) into a material's slot, once its shader has loaded its slots (a few frames for a new one), as core does for the shared ones.

argtypedescription
keystring
slotstring
texany

try( ) → boolean

makeMaterial(v: any, shader: string, key: string, render: any, properties: any?) → void

argtypedescription
vany
shaderstring
keystring
renderany
propertiesany?

writeMatrices(name: string, list: { { number } }) → void

argtypedescription
namestring
list{ { number } }

clear(v: any) → void

Takes down everything an earlier build made.

argtypedescription
vany

keep(kind: string, value: any) → void

argtypedescription
kindstring
valueany

paintFloor(v: any) → void

Paints the floor (on the GPU; the Luau sums are floor.paintFloor, the same bytes as the original's) and hands it to every valley material as main.js does. Falls back to painting it here if the GPU path fails.

argtypedescription
vany

buildHorizon(v: any, inner: number?) → void

argtypedescription
vany
innernumber?

buildWoods(v: any) → void

argtypedescription
vany

build(v: any) → void

argtypedescription
vany

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

farWoods.update(dt, wind): the sails turn, faster in a stronger wind.

argtypedescription
vany
dtnumber

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.

Showing up to 3 levels deep. Open a part to see what it holds further down.

19+items
▣
module · born here
❒asset
# paintedValley.world The land of Painted Valley (port of blendi/painted-valley src/valley/world.js, MIT): heightAt, land, paint/paintAt, pathDistance, tarnDistance, riverDistance, fieldsAt, forestAt, fbm, ridged and the valley's fixed places (HERO, START, TREE, VILLAGE, TARN). Bit-exact with the original (integer hash included). Every part uses it for CPU placement; the GPU twin is paintedValley.core.valleyLand.
▲ 0↑ born
▣
module · born here
❒asset
# paintedValley.far.farwoods Port of farwoods.js: the far trees, orchards, poplars and the mill on the plain as small painted cards, with every placement as the original's random stream lays it. Called by paintedValley.far.far.
▲ 0↑ born
▣
module · born here
❒asset
# paintedValley.far.horizon Port of horizon.js: the plain's mesh from the walk's edge out to 6 km and its far map. Called by paintedValley.far.far.
▲ 0↑ born
▣
module · born here
❒asset
# paintedValley.far.floor Port of floor.js: the farmland, hedges, roads and river painted into one picture (paintFloor, on the GPU with a byte-exact Luau fallback) and its placement FLOOR. Called by paintedValley.far.far.
▲ 0↑ born

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.