Renderer · interface

MeshOptions

What a mesh needs to be told at creation that its geometry cannot say.

Explained in Hello world.

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

Properties

NameTypeDescription
dynamicreadonlyoptionalbooleanWhether this mesh's positions will be rewritten with updateMesh.
More

Costs a DYNAMIC_DRAW hint on WebGL2 and a CPU-side copy of the interleaved vertex data on WebGPU, which interleaves every attribute into one buffer and so cannot patch a position without the rest of the vertex in hand. Both are paid only where a consumer asks.