Hierarchy

  • VertexBufferOptions

Properties

Properties

data?: Float32Array

Optionally pass pre-seeded data, size parameter is ignored

size?: number

Size in number of floats, so [4.2, 4.0, 2.1] is size = 3

Ignored if data is passed directly

type?: "static" | "dynamic"

If the vertices never change switching 'static' can be more efficient on the gpu

Default is 'dynamic'