buildInstancedMesh
此内容尚不支持你的语言。
buildInstancedMesh(
source,plants,paint?):MeshData
Defined in: sdk/src/foliage/builder.ts:219
Copies of a mesh, one per plant, as one mesh: placed, turned about the vertical and scaled, with the wind’s weights painted by how high each vertex stands on its own copy (a tree’s trunk hardly moves, its crown does).
Parameters
Section titled “Parameters”source
Section titled “source”plants
Section titled “plants”readonly Plant[]
paint?
Section titled “paint?”{ base: [number, number, number]; tip: [number, number, number]; } | null