init.lua 674 B

1234567891011121314
  1. return {
  2. summary = 'An object that loads and stores data for 3D models.',
  3. description = [[
  4. A ModelData is a container object that loads and holds data contained in 3D model files. This
  5. can include a variety of things like the node structure of the asset, the vertex data it
  6. contains, contains, the `Image` and `Material` properties, and any included animations.
  7. The current supported formats are OBJ, glTF, and STL.
  8. Usually you can just load a `Model` directly, but using a `ModelData` can be helpful if you want
  9. to load models in a thread or access more low-level information about the Model.
  10. ]],
  11. constructor = 'lovr.data.newModelData'
  12. }