PlantGen
Bake-time generators for the tundra plants at true scale: dwarfWillow, cottongrass, mossHummock, purpleSaxifrage, arcticPoppy, mossCampion and sedgeTuft. Opaque geometry (two-sided blades and petals, lumpy cushions), flower parts name their arcticFlowers atlas cell, vertex alpha…
PlantGen
Bake-time generators for the tundra plants at true scale: dwarfWillow, cottongrass, mossHummock, purpleSaxifrage, arcticPoppy, mossCampion and sedgeTuft. Opaque geometry (two-sided blades and petals, lumpy cushions), flower parts name their arcticFlowers atlas cell, vertex alpha is the sway weight. Run by ArcticBake.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2PlantGen: arcticProps' tundra plants, true to scale: dwarfWillow (creeping woody stems with clusters of small oval leaves over a low leaf carpet), cottongrass (a sedge tuft with fluffy white cotton heads on stalks), mossHummock (a lumpy, patchy moss cushion with a few sedge blades), purpleSaxifrage (a lobed trailing mat starred with five-petalled purple flowers), arcticPoppy (a rosette of lobed leaves, yellow four-petalled cups on stalks and nodding buds), mossCampion (a tight bright-green dome dotted with pink flowers) and sedgeTuft (a dense clump of arching blades, some dead straw). Bake-time only. local G = require("~.PlantGen") local parts, meta = G.KINDS.arcticPoppy.build(2, { lod = 0 }) Plants are small opaque geometry, not alpha cards. Every plant material draws both faces (cull none) and the arcticSurface shader turns the normal of a back face, so leaves, petals and blades are ONE-sided: twice the leaves for the same triangles. Each blade and leaf reads its own narrow window of its texture (a few sedge fibres, about one willow leaf) instead of squeezing the whole sheet onto a centimetre of geometry. Flower parts name their arcticFlowers atlas cell in `cell` (UVs 0..1 over one flower, remapped at bake). Cushions are domes with a sunken rim, so no LOD ever shows an octahedron's pyramid or square. Vertex alpha on foliage is the sway weight (0 at the base, 1 at the tip); cushions are solid. LOD0 stays under 300 triangles, LOD1 under 120, LOD2 under 36. q = { lod = 0 | 1 | 2, low = true for the faceted lowpoly cage }.
pick(q: any, l0: number, l1: number, l2: number, low: number?) → number
| arg | type | description |
|---|---|---|
| q | any | |
| l0 | number | |
| l1 | number | |
| l2 | number | |
| low | number? |
norm(x: number, y: number, z: number) → void
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| z | number |
lerp3(a: { number }, b: { number }, t: number) → void
| arg | type | description |
|---|---|---|
| a | { number } | |
| b | { number } | |
| t | number |
dome(o: any) → any
A dome: an apex and `rings` rings of `sides` vertices, the last ring sunk `sink` below the ground so the cushion grows out of it. `lobes` breaks the outline into an irregular patch, `lump` roughens the surface. UVs planar from above in metres (x, z); color(x, y, z, t, a) -> r, g, b (t 0 apex .. 1 rim).
| arg | type | description |
|---|---|---|
| o | any |
col(x: number, y: number, z: number, t: number, a: number) → void
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| z | number | |
| t | number | |
| a | number |
ring(k: number, j: number) → number return 1
| arg | type | description |
|---|---|---|
| k | number | |
| j | number |
blade(dst: any, rng: any, o: any) → void
One-sided arching blade reading a narrow window of a fibre texture (u across, v along: base 0.92, tip 0.08).
| arg | type | description |
|---|---|---|
| dst | any | |
| rng | any | |
| o | any |
leaf(dst: any, rng: any, base: { number }, dir: { number }, side: { number }, L: number, W: number, tint: { number }, sway: number, low: boolean?) → void
A one-sided oval leaf from `base` along unit `dir`, lying in the plane of `side`, its edges cupped up, its normals bent out across the blade so it shades round. UVs are the leaf's own metres from a random offset, so under a material tiling a leaf carpet every leaf shows about one leaf of it. 4 triangles (2 when `low`).
| arg | type | description |
|---|---|---|
| dst | any | |
| rng | any | |
| base | { number } | |
| dir | { number } | |
| side | { number } | |
| L | number | |
| W | number | |
| tint | { number } | |
| sway | number | |
| low | boolean? |
v(along: number, across: number, aw: number) → number
| arg | type | description |
|---|---|---|
| along | number | |
| across | number | |
| aw | number |
flower(dst: any, p: { number }, r: number, n: number, cup: number, yaw: number, tilt: number, detail: number, tint: { number }?) → void
An open flower of `n` rounded petals around a shared centre, cupped by `cup` (petal tips raised that fraction of the radius), one-sided; UVs 0..1 over the flower so its atlas cell's petals and stamens land on it. `detail` 3 rounds each petal (3 triangles), 2 a kite (2), 1 a single point (1).
| arg | type | description |
|---|---|---|
| dst | any | |
| p | { number } | |
| r | number | |
| n | number | |
| cup | number | |
| yaw | number | |
| tilt | number | |
| detail | number | |
| tint | { number }? |
v(a: number, rr: number) → number
| arg | type | description |
|---|---|---|
| a | number | |
| rr | number |
stalk(dst: any, pts: { { number } }, r0: number, r1: number, tint: { number }, sides: number?) → void
a stalk: a thin 3-sided tube through pts (sway 0 at the foot, 1 at the top)
| arg | type | description |
|---|---|---|
| dst | any | |
| pts | { { number } } | |
| r0 | number | |
| r1 | number | |
| tint | { number } | |
| sides | number? |
dwarfWillow(v: number, q: any) → void
Salix arctica / polaris: woody stems creeping flat over the ground, rooting as they go, each ending in an upturned rosette of small glossy oval leaves, over a low carpet of leaves where the stems are thickest.
| arg | type | description |
|---|---|---|
| v | number | |
| q | any |
color(_x: ?, _y: ?, _z: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| _x | ? | |
| _y | ? | |
| _z | ? | |
| t | ? |
cottongrass(v: number, q: any) → void
Eriophorum: a tuft of narrow leaves and stiff stalks, each topped by a fluffy white head of bristles over a dark glume.
| arg | type | description |
|---|---|---|
| v | number | |
| q | any |
mossHummock(v: number, q: any) → void
A frost-heaved moss cushion: lumpy, patchy green, rust and pale lichen, darker where it meets the ground, a few sedge blades through it.
| arg | type | description |
|---|---|---|
| v | number | |
| q | any |
color(x: ?, y: ?, z: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| y | ? | |
| z | ? | |
| t | ? |
purpleSaxifrage(v: number, q: any) → void
Saxifraga oppositifolia: a flat, lobed mat of tiny dark leaves trailing over the ground, starred with five-petalled magenta cups.
| arg | type | description |
|---|---|---|
| v | number | |
| q | any |
color(_x: ?, _y: ?, _z: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| _x | ? | |
| _y | ? | |
| _z | ? | |
| t | ? |
arcticPoppy(v: number, q: any) → void
Papaver radicatum: a rosette of lobed grey-green leaves, slender stalks each holding a yellow four-petalled cup turned to the sun, a nodding bud or two.
| arg | type | description |
|---|---|---|
| v | number | |
| q | any |
mossCampion(v: number, q: any) → void
Silene acaulis: a tight, bright-green hemispherical cushion with pink five-petalled flowers sitting flush in its surface.
| arg | type | description |
|---|---|---|
| v | number | |
| q | any |
color(_x: ?, _y: ?, _z: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| _x | ? | |
| _y | ? | |
| _z | ? | |
| t | ? |
sedgeTuft(v: number, q: any) → void
A dense clump of narrow arching blades, green at the heart, straw at the tips, with last year's dead blades bleached among them.
| arg | type | description |
|---|---|---|
| v | number | |
| q | 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.
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.