Draws a p5.Geometry object to the canvas.
The first parameter, model, is the p5.Geometry object to draw. p5.Geometry objects can be built with buildGeometry(). They can also be loaded from a file with loadGeometry().
Note: model() can only be used in WebGL mode.
A model with several materials, such as a character with separate skin, shirt, and shoe materials, keeps each material's own colors and textures. The call to model() is the same whether the model has one material or many, so a model made in software such as Blender appears the way it was exported.
Multiple instances can be drawn at once with instances(count). On its own, all the instances get drawn to the same spot, but you can use instanceIndex inside of a shader to handle each instance. At large counts, this often runs faster than using a for loop.
Examples
Syntax
model(model, [count])