bakeDecalMesh
bakeDecalMesh(
receivers,projectorWorld,options?):MeshData|null
Defined in: decal/bake.ts:131
The decal’s geometry, or null when the projector prints on nothing.
Null and not an empty mesh: a decal over thin air is a thing to report, and a mesh with no triangles is a draw call that says nothing.
Parameters
Section titled “Parameters”receivers
Section titled “receivers”readonly DecalReceiver[]
projectorWorld
Section titled “projectorWorld”ArrayLike<number>
options?
Section titled “options?”DecalBakeOptions = {}
Returns
Section titled “Returns”MeshData | null