Browse Source

Document nil blend mode; Rebuild;

bjorn 2 years ago
parent
commit
f08de6bc65
2 changed files with 15 additions and 1 deletions
  1. 6 1
      api/init.lua
  2. 9 0
      api/lovr/graphics/Pass/setBlendMode.lua

+ 6 - 1
api/init.lua

@@ -5979,7 +5979,7 @@ return {
                   name = "format",
                   name = "format",
                   type = "TextureFormat",
                   type = "TextureFormat",
                   description = "The format of the texture's pixels.",
                   description = "The format of the texture's pixels.",
-                  default = "rgba"
+                  default = "rgba8"
                 },
                 },
                 {
                 {
                   name = "data",
                   name = "data",
@@ -12716,6 +12716,11 @@ return {
                     }
                     }
                   },
                   },
                   returns = {}
                   returns = {}
+                },
+                {
+                  description = "Disables blending.  When something is drawn, its pixel colors will replace any existing color in the target texture.  This can work okay for opaque objects, but won't render text or transparency properly.",
+                  arguments = {},
+                  returns = {}
                 }
                 }
               }
               }
             },
             },

+ 9 - 0
api/lovr/graphics/Pass/setBlendMode.lua

@@ -20,6 +20,15 @@ return {
     {
     {
       arguments = { 'blend', 'alphaBlend' },
       arguments = { 'blend', 'alphaBlend' },
       returns = {}
       returns = {}
+    },
+    {
+      description = [[
+        Disables blending.  When something is drawn, its pixel colors will replace any existing
+        color in the target texture.  This can work okay for opaque objects, but won't render text
+        or transparency properly.
+      ]],
+      arguments = {},
+      returns = {}
     }
     }
   },
   },
   notes = 'The default blend mode is `alpha` with the `alphamultiply` alpha mode.'
   notes = 'The default blend mode is `alpha` with the `alphamultiply` alpha mode.'