frame
The scene side of the Painted Valley frame: starts the frame render feature and the finish post effect, sets the display transform to a linear pass-through, and exposes setPaint, setExposure and setTags.
frame (module)
The scene side of the Painted Valley frame: starts the frame render feature and the finish post effect, sets the display transform to a linear pass-through, and exposes setPaint, setExposure and setTags.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2paintedValley.frame.frame (module) — the scene side of Painted Valley's frame (lib/frame.js, blendi/painted-valley, MIT): brings up the frame render feature (tags, paint finish, ink) and the finish post effect (bloom, vignette, exposure, painter's curve), sets the display transform to pass the finished values through, and is how the valley turns the paint off and on (P), sets the exposure for the hour, and names what the frame tags. local frame = require("paintedValley.frame.frame") frame.start() -- once a session (idempotent) frame.setPaint(0 | 3) -- P: the paint finish off / on frame.setExposure(sky.exposure) -- every frame, as main.js sets frame.exposure frame.setTags({ { entity = ref, tag = 0.4 }, { entity = ref, shader = "<id>", properties = {...} } })
feature( ) → any
configure(values: { [string]: any }) → void
Hands the feature new settings. A feature still running an older definition refuses a setting it did not declare then: it is brought up again with every setting, so a hot-reloaded feature always runs the current definition.
| arg | type | description |
|---|---|---|
| values | { [string]: any } |
finishListed( ) → boolean
paintProgram( ) → void
The paint pass's program. The feature names it, but since engine 0.0.7116 a compute shader that is only named by a feature pass is never compiled for it ("compute shader … is not registered … Pass skipped": no paint finish and no ink line), so the frame asks for the compile itself, and again whenever it is absent (a hot reload releases it).
start( ) → void
stop( ) → void
setPaint(level: number) → void
The paint finish: 0 is off; main.js's default at high quality is 3 (P toggles between 0 and that).
| arg | type | description |
|---|---|---|
| level | number |
getPaint( ) → number
setExposure(x: number) → void
frame.exposure = sky.exposure (main.js does this every frame).
| arg | type | description |
|---|---|---|
| x | number |
setBackdrop(spec: any?) → void
The sky's painted strip (its back0 and back2 texture names, elevation range and size), so the brush leaves the painted far country alone and still lays itself over open sky and cloud, as the original's sky alpha has it.
| arg | type | description |
|---|---|---|
| spec | any? |
setTags(list: { any }) → void
What the frame tags, in place of the original's scene alpha. Each entry: { entity = ref|id, tag = number } or { entity = ref|id, shader = "<identity>", properties = { ... } } (a tag shader of the part's own). Entries with the same tag (or the same shader and properties) are drawn in one pass.
| arg | type | description |
|---|---|---|
| list | { any } |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.