mountain
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
mountain
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Fills the snow's landform buffer with a mountain, on the GPU.
rememberKey(key: string) → void
| arg | type | description |
|---|---|---|
| key | string |
params(opts: ?) → Preset
The preset with `opts` applied over it.
| arg | type | description |
|---|---|---|
| opts | ? |
generate(buffer: any, grid: number, extent: number, opts: ?) → void
Generate the landform into `buffer`, a GPU buffer handle of `grid * grid` floats covering `extent` metres. `opts` overrides any field of the preset.
| arg | type | description |
|---|---|---|
| buffer | any | |
| grid | number | |
| extent | number | |
| opts | ? |
pisteY(z: number, opts: ?) → number
Height of the piste's centreline at a z, in metres. The CPU mirror of the corridor the generator writes: the constant grade plus the two rolls, which is the whole of the corridor's shape at x = 0. Camera keyframes and anything authored before the landform has been read back come from here.
| arg | type | description |
|---|---|---|
| z | number | |
| opts | ? |
pisteAt(x: number, z: number, opts: ?) → number
The piste's surface at an x, z inside the corridor: the centreline plus the dish that lifts its edges. Exact — this is what the generator writes, not an approximation of it — so a skier placed from here is on the snow without waiting for the landform to be read back.
| arg | type | description |
|---|---|---|
| x | number | |
| z | number | |
| opts | ? |
fallDirection(opts: ?) → number
Which way is downhill along Z, +1 when the fall line runs toward +Z.
| arg | type | description |
|---|---|---|
| opts | ? |
release( ) → void
Drop the parameter buffers the generates made. The landform buffers themselves belong to whoever asked for them.
Preset = {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.