跳转到内容

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).

MeshData

readonly Plant[]

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

MeshData