Renderer · interface

GpuDrivenScene

Explained in Hello world.

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

Properties

NameTypeDescription
positionsreadonlyFloat32ArrayEvery mesh's positions, concatenated in the order they were given.
normalsreadonlyFloat32Array
coloursreadonlyFloat32Array
uvsreadonlyFloat32ArrayTwo floats a vertex, zeros where a mesh carried none.
emissivereadonlyFloat32ArrayOne float a vertex, zeros where a mesh carried none.
clustersreadonlyClusterBuffersThe clusters, with indices addressing positions rather than any one mesh.
materialOfreadonlyUint32ArrayOne material a cluster, from the mesh it came from.
vertexBasereadonlyUint32ArrayWhere each mesh's vertices begin. One entry a mesh, including meshes with no clusters.
vertexCountreadonlynumber