buildBillboardMesh
buildBillboardMesh(
plants,width,height,rect,paint?,triangle?):MeshData
Defined in: sdk/src/foliage/builder.ts:404
The far version of a plant: two cards crossed at right angles, as wide and as tall as the plant is, each showing the rectangle of the plant’s texture that is its picture. Cheap enough that a forest on the horizon is a few triangles a tree, and seen from any side.
Parameters
Section titled “Parameters”plants
Section titled “plants”readonly Plant[]
number
height
Section titled “height”number
paint?
Section titled “paint?”{ base: [number, number, number]; tip: [number, number, number]; } | null
triangle?
Section titled “triangle?”boolean = false