Dawn
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->
Dawn
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->TODO: describe this component.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Dawn — the first light. Mounted once on `mount_dawn`. One reading drives the whole hour: `FL.light()`, 0 in the dark and 1 when the light has filled the floor. `game.dawn.firstlight` turns that reading into a look — the sun's direction, colour and strength, the ambient, the sky's time of day and its three colours, the height fog, the marched air the shafts come out of — and this component pushes that look at the scene every frame, in edit as well as in play, so the authoring view is never a different night from the played one. It also owns the answer to "is this spot still dark". `coverAt(x, z)` reads the pools the floor slice publishes and eats them as the light rises, and a soft dark card is drawn over each surviving pool so the shrinking is something the player watches happen rather than a number. Published as `FL.provide("dawn", …)`.
reading( ) → number
The reading
coverAt(x: number, z: number) → number
1 deep in a pool, 0 in the open. The pools shrink as the light eats them.
| arg | type | description |
|---|---|---|
| x | number | |
| z | number |
applyLights(look: ?) → void
Pushing the look at the scene
| arg | type | description |
|---|---|---|
| look | ? |
applySky(look: ?) → void
| arg | type | description |
|---|---|---|
| look | ? |
applyAir(look: ?) → void
| arg | type | description |
|---|---|---|
| look | ? |
poolMat( ) → void
The dark over the cover pools
root( ) → void
rebuildCards( ) → void
applyCards(look: ?) → void
| arg | type | description |
|---|---|---|
| look | ? |
glowMat( ) → void
shaftMat( ) → void
buildGold( ) → void
applyGold(look: ?, t: number) → void
| arg | type | description |
|---|---|---|
| look | ? | |
| t | number |
apply( ) → void
awake( ) → void
Lifecycle
light( ) → void
coverScale( ) → void
The share of a published pool's radius still standing, 0..1. The floor slice reads this to shrink the pool it drew.
look( ) → void
The whole look this frame, for a slice that wants to match it.
onDestroy( ) → void
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
editorUpdate(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
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.
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.