Browse Source

Fix setProjection;

bjorn 3 years ago
parent
commit
21db73a624
2 changed files with 13 additions and 5 deletions
  1. 7 3
      api/init.lua
  2. 6 2
      api/lovr/graphics/setProjection.lua

+ 7 - 3
api/init.lua

@@ -5609,17 +5609,21 @@ return {
                   type = "number",
                   description = "The width of the orthographic projection."
                 },
-                nil,
+                {
+                  name = "height",
+                  type = "number",
+                  description = "The height of the orthographic projection."
+                },
                 {
                   name = "clipNear",
                   type = "number",
-                  description = "The height of the orthographic projection.",
+                  description = "The near clipping plane.",
                   default = "-1.0"
                 },
                 {
                   name = "clipFar",
                   type = "number",
-                  description = "The height of the orthographic projection.",
+                  description = "The far clipping plane.",
                   default = "1.0"
                 }
               },

+ 6 - 2
api/lovr/graphics/setProjection.lua

@@ -53,15 +53,19 @@ return {
       type = 'number',
       description = 'The width of the orthographic projection.'
     },
+    height = {
+      type = 'number',
+      description = 'The height of the orthographic projection.'
+    },
     clipNear = {
       type = 'number',
       default = '-1.0',
-      description = 'The height of the orthographic projection.'
+      description = 'The near clipping plane.'
     },
     clipFar = {
       type = 'number',
       default = '1.0',
-      description = 'The height of the orthographic projection.'
+      description = 'The far clipping plane.'
     }
   },
   returns = {},