Renderer · interface
GpuDrivenScene
Explained in Hello world.
interface GpuDrivenSceneimport type { GpuDrivenScene } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
positionsreadonly | Float32Array | Every mesh's positions, concatenated in the order they were given. |
normalsreadonly | Float32Array | |
coloursreadonly | Float32Array | |
uvsreadonly | Float32Array | Two floats a vertex, zeros where a mesh carried none. |
emissivereadonly | Float32Array | One float a vertex, zeros where a mesh carried none. |
clustersreadonly | ClusterBuffers | The clusters, with indices addressing positions rather than any one mesh. |
materialOfreadonly | Uint32Array | One material a cluster, from the mesh it came from. |
vertexBasereadonly | Uint32Array | Where each mesh's vertices begin. One entry a mesh, including meshes with no clusters. |
vertexCountreadonly | number |