Browse Source

Fix lovr.graphics.plane w,h defaults;

bjorn 5 years ago
parent
commit
6811d706b1
2 changed files with 6 additions and 6 deletions
  1. 4 4
      api/init.lua
  2. 2 2
      api/lovr/graphics/plane.lua

+ 4 - 4
api/init.lua

@@ -8865,13 +8865,13 @@ return {
                   name = "w",
                   type = "number",
                   description = "The width of the texture UVs to render.",
-                  default = "1.0"
+                  default = "1.0 - u"
                 },
                 {
                   name = "h",
                   type = "number",
                   description = "The height of the texture UVs to render.",
-                  default = "1.0"
+                  default = "1.0 - v"
                 }
               },
               returns = {}
@@ -8954,13 +8954,13 @@ return {
                   name = "w",
                   type = "number",
                   description = "The width of the texture UVs to render.",
-                  default = "1.0"
+                  default = "1.0 - u"
                 },
                 {
                   name = "h",
                   type = "number",
                   description = "The height of the texture UVs to render.",
-                  default = "1.0"
+                  default = "1.0 - v"
                 }
               },
               returns = {}

+ 2 - 2
api/lovr/graphics/plane.lua

@@ -69,12 +69,12 @@ return {
     },
     w = {
       type = 'number',
-      default = '1.0',
+      default = '1.0 - u',
       description = 'The width of the texture UVs to render.'
     },
     h = {
       type = 'number',
-      default = '1.0',
+      default = '1.0 - v',
       description = 'The height of the texture UVs to render.'
     }
   },