VegPlants
Deterministic generators for the tropicalProps beach plants, flowering bushes and palm litter: `beachGrass`, `seaOats`, `seaGrape`, `beachMorningGlory`, `spiderLily`, `tropicalUndergrowth`, `hibiscusBush`, `bougainvilleaBush`, `fernTropical`, `coconut`, `coconutPile`, `palmFrondF…
VegPlants
Deterministic generators for the tropicalProps beach plants, flowering bushes and palm litter: beachGrass, seaOats, seaGrape, beachMorningGlory, spiderLily, tropicalUndergrowth, hibiscusBush, bougainvilleaBush, fernTropical, coconut, coconutPile, palmFrondFallen. VegPlants.generate(kind, variant, form) returns { lods = { [0] = parts, [1] = parts, [2] = parts } } of VegGeo geometries (leaves, flowers, stems, fruit, grass, seed, husk, green, sprout, dry). VegBake calls it.
Leaves, petals and bracts are real outlines fanned from their base (ovate, round, notched goat's-foot, heart, strap, pinna), each carrying UV 0..1 (u across, v base -> tip) so any leaf card texture reads. Bushes are a dome of leaves with normals bent outward from the bush centre on a few stems, flowers set into the outer shell. Grass is alpha tuft cards (v = 0 at the ground). LOD1 keeps every third leaf at 1.6x size; LOD2 keeps a few big leaves for bushes and is culled for small plants. Forms: real, toon (fewer, bigger leaves), low (faceted).
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2VegPlants: deterministic generators for the tropicalProps beach plants, flowering bushes and palm litter (tool code: VegBake calls it). local Pl = require("~.VegPlants") local out = Pl.generate("hibiscusBush", 1, "real") -- out.lods[0].leaves / .flowers / .stems ..., out.lods[1], out.lods[2] Leaves, petals and bracts are real outlines (polygon leaves fanned from their base), not alpha squares, so any leaf texture reads. Each piece carries UV 0..1 (u across, v base -> tip). Grass is alpha-card tufts (v = 0 at the ground). Bushes are a dome of leaves whose normals bend outward from the bush centre, on a few stems, with flowers set into the outer shell. LOD1 keeps every third leaf at 1.6x size; LOD2 keeps a few big leaves (bushes) or nothing (small plants, culled). Forms: real (real/painted/pixel), toon (fewer, bigger, rounder leaves), low (faceted low-poly). Foliage vertex alpha is the wind weight (0 at the root, 1 at the tips); solid parts are baked alpha 1.
clamp01(x: number) → number return math
| arg | type | description |
|---|---|---|
| x | number |
styleOf(form: string) → Style
| arg | type | description |
|---|---|---|
| form | string |
pick(outline: string, st: Style) → void
| arg | type | description |
|---|---|---|
| outline | string | |
| st | Style |
lodSel(lod: number, bush: boolean) → LodSel
| arg | type | description |
|---|---|---|
| lod | number | |
| bush | boolean |
tint(rng: any, base: { number }, var: number) → void
| arg | type | description |
|---|---|---|
| rng | any | |
| base | { number } | |
| var | number |
stemTube(g: any, pts: { { number } }, r0: number, r1: number, sides: number, col: { number }, alphaTip: number?) → void
a stem tube; a swaying stem (alphaTip > 0) is drawn with a leaf material, so its uvs sample the opaque midrib strip of the leaf texture
| arg | type | description |
|---|---|---|
| g | any | |
| pts | { { number } } | |
| r0 | number | |
| r1 | number | |
| sides | number | |
| col | { number } | |
| alphaTip | number? |
radius(i: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| i | ? | |
| t | ? |
tint( ) → void
alpha(t: ?) → void
| arg | type | description |
|---|---|---|
| t | ? |
curve(p0: { number }, d0: { number }, L: number, steps: number, gravity: number, wiggle: number, seed: number) → void
a curved stem from p0 heading d0, bending by `gravity` per metre (+ up / - down)
| arg | type | description |
|---|---|---|
| p0 | { number } | |
| d0 | { number } | |
| L | number | |
| steps | number | |
| gravity | number | |
| wiggle | number | |
| seed | number |
hibiscusFlower(g: any, p: { number }, f: { number }, size: number, st: Style, rng: any) → void
| arg | type | description |
|---|---|---|
| g | any | |
| p | { number } | |
| f | { number } | |
| size | number | |
| st | Style | |
| rng | any |
bougainvilleaCluster(g: any, p: { number }, f: { number }, size: number, st: Style, rng: any) → void
| arg | type | description |
|---|---|---|
| g | any | |
| p | { number } | |
| f | { number } | |
| size | number | |
| st | Style | |
| rng | any |
bush(parts: any, b: Bush, st: Style, rng: any, seed: number) → any
| arg | type | description |
|---|---|---|
| parts | any | |
| b | Bush | |
| st | Style | |
| rng | any | |
| seed | number |
tuftCards(g: any, base: { number }, h: number, cards: number, segs: number, spread: number, rng: any, col0: { number }) → void
| arg | type | description |
|---|---|---|
| g | any | |
| base | { number } | |
| h | number | |
| cards | number | |
| segs | number | |
| spread | number | |
| rng | any | |
| col0 | { number } |
strap(g: any, spine: { { number } }, hw: number, keel: number, widthFn: ((t: number) → void
| arg | type | description |
|---|---|---|
| g | any | |
| spine | { { number } } | |
| hw | number | |
| keel | number | |
| widthFn | ((t: number |
perLod(build: (lod: number, ps: any) → void
| arg | type | description |
|---|---|---|
| build | (lod: number, ps: any |
beachGrass(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
seaOats(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
seaGrape(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
hibiscusBush(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
bougainvilleaBush(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
beachMorningGlory(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
radius(k: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| k | ? | |
| t | ? |
tint(k: ?) → void
| arg | type | description |
|---|---|---|
| k | ? |
alpha(t: ?) → void
| arg | type | description |
|---|---|---|
| t | ? |
spiderLily(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
radius(i: ?) → void
| arg | type | description |
|---|---|---|
| i | ? |
tint( ) → void
tropicalUndergrowth(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
fernTropical(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
lyingNut(g: any, c: { number }, r: number, axis: { number }, form: string, lod: number, col: { number }) → void
| arg | type | description |
|---|---|---|
| g | any | |
| c | { number } | |
| r | number | |
| axis | { number } | |
| form | string | |
| lod | number | |
| col | { number } |
coconut(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
coconutPile(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
palmFrondFallen(variant: ?, form: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| variant | ? | |
| form | ? | |
| seed | ? |
radius(i: ?) → void
| arg | type | description |
|---|---|---|
| i | ? |
shape(th: ?) → void
| arg | type | description |
|---|---|---|
| th | ? |
tint( ) → void
tint( ) → void
generate(kind: string, variant: number, form: string) → any
Generate one plant / litter kind at a variant in a form ("real" | "toon" | "low"): { lods = { [0] = parts, [1] = parts, [2] = parts } }.
| arg | type | description |
|---|---|---|
| kind | string | |
| variant | number | |
| form | string |
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.