Browse Source

Update newModel notes;

bjorn 2 years ago
parent
commit
842e3ec39d
2 changed files with 1101 additions and 887 deletions
  1. 1085 887
      api/init.lua
  2. 16 0
      api/lovr/graphics/newModel.lua

File diff suppressed because it is too large
+ 1085 - 887
api/init.lua


+ 16 - 0
api/lovr/graphics/newModel.lua

@@ -50,6 +50,22 @@ return {
       returns = { 'model' }
     }
   },
+  notes = [[
+    Currently, the following features are not supported by the model importer:
+
+    - glTF: Morph targets are not supported.
+    - glTF: Only the default scene is loaded.
+    - glTF: Only the default scene is loaded.
+    - glTF: Currently, each skin in a Model can have up to 256 joints.
+    - glTF: Meshes can't appear multiple times in the node hierarchy with different skins, they need
+      to use 1 skin consistently.
+    - glTF: `KHR_texture_transform` is supported, but all textures in a material will use the same
+      transform.
+    - STL: ASCII STL files are not supported.
+
+    Diffuse and emissive textures will be loaded using sRGB encoding, all other textures will be
+    loaded as linear.
+  ]],
   related = {
     'lovr.data.newModelData',
     'Pass:draw'

Some files were not shown because too many files changed in this diff