bjorn 2 lat temu
rodzic
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.
           ]]
         },
+        {
+          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',
           type = 'boolean',

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

@@ -53,7 +53,6 @@ return {
   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: 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
@@ -64,6 +63,10 @@ return {
 
     Diffuse and emissive textures will be loaded using sRGB encoding, all other textures will be
     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 = {
     'lovr.data.newModelData',