Browse Source

Clarify that Pass:draw supports vector scale;

bjorn 10 months ago
parent
commit
e2b60e9a22
2 changed files with 8 additions and 5 deletions
  1. 3 4
      api/init.lua
  2. 5 1
      api/lovr/graphics/Pass/draw.lua

+ 3 - 4
api/init.lua

@@ -18479,10 +18479,9 @@ return {
                       description = "The position to draw the object at."
                     },
                     {
-                      name = "scale",
-                      type = "number",
-                      description = "The scale of the object.",
-                      default = "1"
+                      name = "scale3",
+                      type = "Vec3",
+                      description = "The scale of the object, as a vector."
                     },
                     {
                       name = "orientation",

+ 5 - 1
api/lovr/graphics/Pass/draw.lua

@@ -51,6 +51,10 @@ return {
       type = 'Vec3',
       description = 'The position to draw the object at.'
     },
+    scale3 = {
+      type = 'Vec3',
+      description = 'The scale of the object, as a vector.'
+    },
     orientation = {
       type = 'Quat',
       description = 'The orientation of the object.'
@@ -72,7 +76,7 @@ return {
       returns = {}
     },
     {
-      arguments = { 'object', 'position', 'scale', 'orientation', 'instances' },
+      arguments = { 'object', 'position', 'scale3', 'orientation', 'instances' },
       returns = {}
     },
     {