Renderer · interface

ClusterSource

What packing needs of one mesh's clusters. MeshletLevel from MSHL satisfies it.

Explained in Hello world.

interface ClusterSource
import type { ClusterSource } from '@driftengine/core';

Properties

NameTypeDescription
countreadonlynumber
triangleOffsetsreadonlyUint32Array
triangleCountsreadonlyUint32Array
boundsCentrereadonlyFloat32Array
boundsRadiusreadonlyFloat32Array
coneAxisreadonlyFloat32Array
coneCutoffreadonlyFloat32ArrayThe minimum dot product of any face normal against the axis — the cosine of the cone's half-angle, as buildClusters writes it and MSHL stores it. Packing turns it into the sine the cull is written in; see cullCutoff.
ownErrorreadonlyFloat32Array
parentErrorreadonlyFloat32Array
indicesreadonlyUint32Array