Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ModelSpec

Hierarchy

  • ModelSpec

Index

Properties

Optional attribPool

attribPool: AttribPool

Geometry attributes given as AttribPool instance.

attribs

GLSL attribute declarations

Optional indices

Buffer spec for indexed geometry

Optional instances

instances: InstancingSpec

Extra configuration for instanced geometry

Optional mode

mode: DrawMode

WebGL draw mode. Defaults to TRIANGLES

num

num: number

Number of vertices/indices to draw

shader

shader: IShader

Initialized IShader instance

Optional textures

textures: ITexture[]

Array of initialized ITexture instances. Each non-null item will be auto-bound to its respective texture unit, each time the model is drawn via draw

Optional uniforms

uniforms: UniformValues

GLSL uniform value overrides

Generated using TypeDoc