ShoreRocks
Bake-time generators for tropicalProps' stone kinds: `rockBeach`, `rockBasalt`, `rockLimestone`, `rockMossy`, `rockCluster`, `rockShelfTidePool`, `pebbleScatter`, `cliffWall`, `cliffSpire`, `cliffBoulderPile`. Angular rock is an exact convex polytope cut by joint planes then warp…
ShoreRocks
Bake-time generators for tropicalProps' stone kinds: rockBeach, rockBasalt, rockLimestone, rockMossy, rockCluster, rockShelfTidePool, pebbleScatter, cliffWall, cliffSpire, cliffBoulderPile. Angular rock is an exact convex polytope cut by joint planes then warped (after alpineProps RockGen, MIT); beach rock is a geodesic blob with soft wear facets; limestone is pitted and ridged; cliffs are displaced grids whose wavy strata step into ledges and overhangs, tileable along X. ShoreGen / ShoreBake call SPECS[kind].build(rng, variant, lod, form).
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2ShoreRocks: the stone generators of tropicalProps' shore half: beach boulders, basalt and limestone rocks, rock clusters, a tide-pool shelf, pebble scatters, a tileable layered volcanic cliff wall, a sea stack and a scree pile. Bake-time only (ShoreBake runs them through ShoreGen). local SR = require("~.ShoreRocks") local parts, meta = SR.SPECS.rockBasalt.build(rng, variant, lod, form) -- parts = { body = Geo, wet = Geo?, moss = Geo?, ... }, form = "default" | "toon" | "lowpoly" Angular rock (basalt, scree, cliff blocks) is an exact convex polytope cut by joint planes, subdivided and warped by position noise (the block method of alpineProps' RockGen, MIT); rounded beach rock is a geodesic blob with soft planar wear facets; limestone is a blob pitted by solution holes and ridged karren. Cliffs are displaced grids whose strata steps make ledges and overhangs. Every random number is drawn before any LOD-dependent work, so the three LODs and the looks of one variant are the same rock.
smin(a: number, b: number, k: number) → number
| arg | type | description |
|---|---|---|
| a | number | |
| b | number | |
| k | number |
smooth(e0: number, e1: number, x: number) → number
| arg | type | description |
|---|---|---|
| e0 | number | |
| e1 | number | |
| x | number |
lerp(a: number, b: number, t: number) → number
| arg | type | description |
|---|---|---|
| a | number | |
| b | number | |
| t | number |
detailOf(lod: number, form: string) → number
detail by look: toon is chunky and smooth, lowpoly is built coarse and faceted later
| arg | type | description |
|---|---|---|
| lod | number | |
| form | string |
prefix(list: { any }, n: number) → void
| arg | type | description |
|---|---|---|
| list | { any } | |
| n | number |
blockPlanes(rng: any, a: number, b: number, c: number, o: any) → void
| arg | type | description |
|---|---|---|
| rng | any | |
| a | number | |
| b | number | |
| c | number | |
| o | any |
newBlock(rng: any, ext: { number }, o: any) → Block
| arg | type | description |
|---|---|---|
| rng | any | |
| ext | { number } | |
| o | any |
blockDisp(b: Block, detail: number) → void
| arg | type | description |
|---|---|---|
| b | Block | |
| detail | number |
stoneColor(b: Block, groundY: number, base: { number }, wetBand: number?) → void
dark volcanic stone tint: grey-brown with a faint warm drift, darker low and in cracks, a wet band at the foot
| arg | type | description |
|---|---|---|
| b | Block | |
| groundY | number | |
| base | { number } | |
| wetBand | number? |
blockGeo(b: Block, level: number, keepPlanes: number?, detail: number, groundY: number, edgeSoft: number, base: { number }, wetBand: number?) → any
| arg | type | description |
|---|---|---|
| b | Block | |
| level | number | |
| keepPlanes | number? | |
| detail | number | |
| groundY | number | |
| edgeSoft | number | |
| base | { number } | |
| wetBand | number? |
blockTris(b: Block, level: number, keepPlanes: number?) → number
| arg | type | description |
|---|---|---|
| b | Block | |
| level | number | |
| keepPlanes | number? |
fitLevels(blocks: { Block }, budget: number, maxLevel: number, keepPlanes: number?) → void
| arg | type | description |
|---|---|---|
| blocks | { Block } | |
| budget | number | |
| maxLevel | number | |
| keepPlanes | number? |
assemble(blocks: { Block }, lod: number, form: string, o: any) → any
mesh a block assembly at a LOD / look
| arg | type | description |
|---|---|---|
| blocks | { Block } | |
| lod | number | |
| form | string | |
| o | any |
roundPlanes(rng: any, n: number) → void
| arg | type | description |
|---|---|---|
| rng | any | |
| n | number |
roundStone(lod: number, form: string, o: RoundOpts) → any
| arg | type | description |
|---|---|---|
| lod | number | |
| form | string | |
| o | RoundOpts |
shape(dx: ?, dy: ?, dz: ?) → void
| arg | type | description |
|---|---|---|
| dx | ? | |
| dy | ? | |
| dz | ? |
color(x: ?, y: ?, z: ?, _dx: ?, dy: ?, _dz: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| y | ? | |
| z | ? | |
| _dx | ? | |
| dy | ? | |
| _dz | ? |
wetFoot(body: any, h: number, seed: number) → any
a dark wet film over the foot of a stone (rockWet), up to `h` above ground
| arg | type | description |
|---|---|---|
| body | any | |
| h | number | |
| seed | number |
shape(dx: ?, dy: ?, dz: ?) → void
| arg | type | description |
|---|---|---|
| dx | ? | |
| dy | ? | |
| dz | ? |
color(x: ?, y: ?, z: ?, dx: ?, dy: ?, dz: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| y | ? | |
| z | ? | |
| dx | ? | |
| dy | ? | |
| dz | ? |
shelfModel(rng: any, v: number) → void
| arg | type | description |
|---|---|---|
| rng | any | |
| v | number |
outline(t: number) → number
| arg | type | description |
|---|---|---|
| t | number |
baseH(x: number, z: number) → number
| arg | type | description |
|---|---|---|
| x | number | |
| z | number |
rad(t: number) → number
| arg | type | description |
|---|---|---|
| t | number |
height(x: number, z: number) → void
| arg | type | description |
|---|---|---|
| x | number | |
| z | number |
shelfBody(m: any, lod: number, form: string) → void
| arg | type | description |
|---|---|---|
| m | any | |
| lod | number | |
| form | string |
strata(rng: any, H: number, o: any?) → void
| arg | type | description |
|---|---|---|
| rng | any | |
| H | number | |
| o | any? |
layerAt(layers: { { number } }, y: number) → void
| arg | type | description |
|---|---|---|
| layers | { { number } } | |
| y | number |
cliffRows(layers: { { number } }, H: number, step: number, crisp: boolean) → void
rows of the face grid: dense at every layer boundary (crisp ledge / underside), evenly between
| arg | type | description |
|---|---|---|
| layers | { { number } } | |
| H | number | |
| step | number | |
| crisp | boolean |
periodic(x: number, y: number, f: number, seed: number) → number
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| f | number | |
| seed | number |
cliffColor(seed: number, layers: { { number } }, H: number) → void
| arg | type | description |
|---|---|---|
| seed | number | |
| layers | { { number } } | |
| H | number |
edgeLayers(H: number) → void
| arg | type | description |
|---|---|---|
| H | number |
faceZ(x: number, y: number, L: { { number } }, s: number) → number
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| L | { { number } } | |
| s | number |
radius(t: number, y: number) → number
| arg | type | description |
|---|---|---|
| t | number | |
| y | number |
facing(x: ?, y: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| y | ? | |
| z | ? |
Spec = { category: string, variants: number, forms: { string }?, build: (rng: any, v: number, lod: number, form: string) -> (Parts, 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.
These counts cover only the parts this page shows. Problems on the parts it leaves out are not counted here.
This asset
●1problemagent_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.