Browse Source

Add note about model texture sRGB;

bjorn 7 years ago
parent
commit
e8d16fa631
2 changed files with 4 additions and 2 deletions
  1. 1 1
      api/init.lua
  2. 3 1
      api/lovr/graphics/newModel.lua

+ 1 - 1
api/init.lua

@@ -8463,7 +8463,7 @@ return {
           description = "Creates a new Model from a file.  The supported 3D file formats are `obj`, `fbx`, and `gltf`.\n\nThe following features are not supported yet: animations, materials, vertex colors.",
           key = "lovr.graphics.newModel",
           module = "lovr.graphics",
-          notes = "Models loaded from glTF files do not currently import animations properly.",
+          notes = "- Models loaded from glTF files do not currently import animations properly.\n- Diffuse and emissive textures will be loaded in the sRGB encoding, all other textures will be\n  loaded as linear.",
           variants = {
             {
               arguments = {

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

@@ -54,6 +54,8 @@ return {
     }
   },
   notes = [[
-    Models loaded from glTF files do not currently import animations properly.
+    - Models loaded from glTF files do not currently import animations properly.
+    - Diffuse and emissive textures will be loaded in the sRGB encoding, all other textures will be
+      loaded as linear.
   ]]
 }