Advanced
Includes vertex positions, face indices, colors, UVs, and custom attributes within buffers, reducing the cost of passing all this data to the GPU. Can be shared between multiple Mesh objects.
Optional
roundWhether or not to round the x/y position.
Optional
shaderRepresents the vertex and fragment shaders that processes the geometry and runs on the GPU. Can be shared between multiple Mesh objects.
Optional
stateThe state of WebGL required to render the mesh.
Optional
textureThe texture that the Mesh uses. Null for non-MeshMaterial shaders
Options for creating a Mesh instance.