Hierarchy

  • VertexLayoutOptions

Properties

attributes: [name: string, numberOfComponents: number][]

Specify the attributes that will exist in the vertex buffer

Important must specify them in the order that they will be in the vertex buffer!!

gl: WebGL2RenderingContext

WebGL2RenderingContext this layout will be attached to, these cannot be reused across contexts.

shader?: Shader

Shader that this layout will be for, if null you must set a shader before using it.

vertexBuffer: VertexBuffer

Vertex buffer to use for vertex data