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

backdrop

valley/backdrop.js: the far country's height map (backdropHeight) and its painted strip (backdropPaint, three RGBA8 targets), drawn once in strips over a few frames. See ../README.md.

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

backdrop

valley/backdrop.js: the far country's height map (backdropHeight) and its painted strip (backdropPaint, three RGBA8 targets), drawn once in strips over a few frames. See ../README.md.

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.sky.backdrop — the far country of Painted Valley (valley/backdrop.js, blendi/painted-valley on Patch, MIT). The far country, painted once: wooded foothills, a range of snow mountains behind them and a paler range behind that, drawn the way a matte painter would, into a strip of picture that wraps the horizon. It stands too far off for a walk to shift it, so it can be worked as hard as a painting is. What is kept is the paint and not the picture: each point's colour in the light, its colour in shade, how lit it is and how much air lies in front of it. The sky's dome mixes those with the hour's light, so the hour can change without the mountains being painted again. It is made in two goes. The ground's height is worked out once into a map (backdropHeight); the painting then reads the map (backdropPaint), which is what lets it look a long way along every ray, cast every shadow, and still be ready in a moment. Port: the original draws the map in 8 upright strips and the picture in 48, all in one go; here each strip is a dispatch and paint() lays them out over frames (pump), a few a frame, so no one frame holds the GPU for long. The three draw buffers are three RGBA8 storage textures; the height map is RGBA16F (the original's half floats).

create(hero: { number }, side: { number }, options: { width: number?, ground: number? }?) → void

side: the afternoon sun's level direction (x, z), which side the mountains are lit from. options.width: texels round the horizon; options.ground: texels along a side of the height map.

argtypedescription
hero{ number }
side{ number }
options{ width: number?, ground: number? }?

heightStrip(i: number) → void

argtypedescription
inumber

paintStrip(i: number) → void

argtypedescription
inumber

paint( ) → void

Works the ground out and paints the whole strip, once (laid out over the next frames: see pump).

pump( ) → number

Draws what paint() still owes, up to a frame's worth. Returns how many steps are left.

ready( ) → boolean

dropHeights( ) → void

The height map is wanted only while the picture is painted: let it go once it is.

free( ) → void

Sub-parts

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

13items
·
computeshader · born here
❒asset
Works out the height of Painted Valley's far country (valley/backdrop.js heightFragment) into a 4096² RGBA16F map: three ranks of wooded foothills, the snow range with its two great peaks, and the further range seen through the passes. Run once, in column strips, by paintedValley.sky.backdrop.
▲ 0↑ born
·
computeshader · born here
❒asset
Paints Painted Valley's far country (valley/backdrop.js paintFragment) into the 12288 × 819 strip that wraps the horizon: the height map marched along every ray, facets, snow down the gullies, wooded foothills with their crowns, fields and paths, ridge shadows, the mist between ranges and the bank of cloud. Keeps the paint, not the picture (light colour, shade colour and how lit, air/mist/bank), as three RGBA8 targets the sky dome mixes with the hour's light. Run once, in column strips, by paintedValley.sky.backdrop.
▲ 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. 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.