Kaynağa Gözat

Document new WrapModes;

bjorn 8 ay önce
ebeveyn
işleme
d4d7f2c544
2 değiştirilmiş dosya ile 19 ekleme ve 0 silme
  1. 8 0
      api/init.lua
  2. 11 0
      api/lovr/graphics/WrapMode.lua

+ 8 - 0
api/init.lua

@@ -10877,6 +10877,14 @@ return {
             {
               name = "repeat",
               description = "Tiles the texture."
+            },
+            {
+              name = "mirror",
+              description = "Similar to `repeat`, but flips the texture each time it repeats."
+            },
+            {
+              name = "border",
+              description = "Similar to `clamp`, but everything outside the 0-1 uv range will be filled with transparent black, i.e. `(0, 0, 0, 0)`."
             }
           }
         }

+ 11 - 0
api/lovr/graphics/WrapMode.lua

@@ -12,6 +12,17 @@ return {
     {
       name = 'repeat',
       description = 'Tiles the texture.'
+    },
+    {
+      name = 'mirror',
+      description = 'Similar to `repeat`, but flips the texture each time it repeats.'
+    },
+    {
+      name = 'border',
+      description = [[
+        Similar to `clamp`, but everything outside the 0-1 uv range will be filled with transparent
+        black, i.e. `(0, 0, 0, 0)`.
+      ]]
     }
   }
 }