meshVertexBufferWithColor

fun meshVertexBufferWithColor(size: Int): VertexBuffer(source)

Creates a VertexBuffer that is suited for holding meshes. Each vertex contains:

  • position (vec3)

  • normal (vec3)

  • textureCoordinate (vec2)

  • color (vec4)