Browse Source

Fix Pass:text metatype;

bjorn 2 years ago
parent
commit
17526cf38e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      api/init.lua
  2. 1 1
      api/lovr/graphics/Pass/text.lua

+ 1 - 1
api/init.lua

@@ -13529,7 +13529,7 @@ return {
                     {
                       name = "colortext",
                       type = "table",
-                      description = "A table of strings with colors to render, in the form `{ color1, string1, color2, string2\n      }`, where color is a `Color`."
+                      description = "A table of strings with colors to render, in the form `{ color1, string1, color2, string2\n      }`, where color is a `Vec3`, `Vec4`, hexcode, or table of numbers."
                     },
                     {
                       name = "transform",

+ 1 - 1
api/lovr/graphics/Pass/text.lua

@@ -13,7 +13,7 @@ return {
       type = 'table',
       description = [[
         A table of strings with colors to render, in the form `{ color1, string1, color2, string2
-      }`, where color is a `Color`.
+      }`, where color is a `Vec3`, `Vec4`, hexcode, or table of numbers.
       ]]
     },
     transform = {