Skip to content

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.

readonly Plant[]

number

number

CardRect

{ base: [number, number, number]; tip: [number, number, number]; } | null

boolean = false

MeshData