Browse Source

More docs;

bjorn 2 năm trước cách đây
mục cha
commit
3f12cb1ee5

+ 8 - 0
api/lovr/graphics/getFeatures.lua

@@ -39,6 +39,14 @@ return {
             When supported, `Pass:setDepthClamp` will work, otherwise it will do nothing.
             When supported, `Pass:setDepthClamp` will work, otherwise it will do nothing.
           ]]
           ]]
         },
         },
+        {
+          name = 'depthResolve',
+          type = 'boolean',
+          description = [[
+            When supported, multisampled render passes can use a non-multisampled depth texture.
+            Otherwise, the depth texture sample count needs to match the render pass sample count.
+          ]]
+        },
         {
         {
           name = 'indirectDrawFirstInstance',
           name = 'indirectDrawFirstInstance',
           type = 'boolean',
           type = 'boolean',

+ 4 - 1
api/lovr/graphics/newModel.lua

@@ -53,7 +53,6 @@ return {
   notes = [[
   notes = [[
     Currently, the following features are not supported by the model importer:
     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: 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
     - glTF: Meshes can't appear multiple times in the node hierarchy with different skins, they need
@@ -64,6 +63,10 @@ return {
 
 
     Diffuse and emissive textures will be loaded using sRGB encoding, all other textures will be
     Diffuse and emissive textures will be loaded using sRGB encoding, all other textures will be
     loaded as linear.
     loaded as linear.
+
+    Loading a model file will fail if the asset references textures or other files using absolute
+    paths.  Relative paths should be used instead, and will be relative to the model file within the
+    virtual filesystem.
   ]],
   ]],
   related = {
   related = {
     'lovr.data.newModelData',
     'lovr.data.newModelData',