Creates a model from the specified mesh.
The created Model.
The mesh to create the model from.
The material to apply to the model. If null, the material is not set.