ソースを参照

Update newImage format notes;

bjorn 1 年間 前
コミット
ee68c27f8a
2 ファイル変更4 行追加5 行削除
  1. 1 1
      api/init.lua
  2. 3 4
      api/lovr/data/newImage.lua

+ 1 - 1
api/init.lua

@@ -3548,7 +3548,7 @@ return {
           description = "Creates a new Image.  Image data can be loaded and decoded from an image file, or a raw block of pixels with a specified width, height, and format can be created.",
           key = "lovr.data.newImage",
           module = "lovr.data",
-          notes = "The supported image file formats are png, jpg, hdr, dds (DXT1, DXT3, DXT5), ktx, and astc.\n\nOnly 2D textures are supported for DXT/ASTC.\n\nCurrently textures loaded as KTX need to be in DXT/ASTC formats.",
+          notes = "The supported image file formats are png, jpg, hdr, dds, ktx1, ktx2, and astc.\n\nDDS and KTX files can contain cubemaps and array textures, in any of the texture formats LÖVR supports.",
           variants = {
             {
               description = "Load image data from a file.",

+ 3 - 4
api/lovr/data/newImage.lua

@@ -65,10 +65,9 @@ return {
     }
   },
   notes = [[
-    The supported image file formats are png, jpg, hdr, dds (DXT1, DXT3, DXT5), ktx, and astc.
+    The supported image file formats are png, jpg, hdr, dds, ktx1, ktx2, and astc.
 
-    Only 2D textures are supported for DXT/ASTC.
-
-    Currently textures loaded as KTX need to be in DXT/ASTC formats.
+    DDS and KTX files can contain cubemaps and array textures, in any of the texture formats LÖVR
+    supports.
   ]]
 }