Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ModelAttributeSpec

Data specification of a single WebGL attribute

Hierarchy

  • ModelAttributeSpec

Index

Properties

Optional buffer

Backing WebGLArrayBuffer instance. Usually this will be auto-initialized by {@link compileBuffers}

Optional data

Raw attribute data from which buffer will be initialized

Optional divisor

divisor: number

Optional normalized

normalized: boolean

Auto-normalization flag when writing buffer data. Default: false

Optional offset

offset: number

Byte offset of 1st attrib component. Default: 0

Optional size

size: number

Attribute element size (in component values, not bytes). Default: 3

Optional stride

stride: number

Attribute stride in bytes. Default: 0 = densely packed

Optional type

type: Type | GLType

Attribute's WebGL data type. Default: gl.FLOAT

Generated using TypeDoc