upload
Uploads the mesh data to the GPU.
This method is usually called automatically, especially by the generation functions in the Mesh companion object. However, if you manually modify the mesh data (e.g., vertices, normals, texture coordinates), you should call this method to ensure that the changes are reflected in the GPU memory.
Parameters
dynamic
Whether the mesh is dynamic (i.e., will be updated frequently).