Browse Source

Fix Mat4:perspective;

bjorn 3 years ago
parent
commit
c75a406cb5
2 changed files with 4 additions and 4 deletions
  1. 2 2
      api/init.lua
  2. 2 2
      api/lovr/math/Mat4/perspective.lua

+ 2 - 2
api/init.lua

@@ -15951,12 +15951,12 @@ return {
                     {
                       name = "fov",
                       type = "number",
-                      description = "The field of view (in radians)."
+                      description = "The vertical field of view (in radians)."
                     },
                     {
                       name = "aspect",
                       type = "number",
-                      description = "The vertical aspect ratio of the projection."
+                      description = "The horizontal aspect ratio of the projection (width / height)."
                     }
                   },
                   returns = {

+ 2 - 2
api/lovr/math/Mat4/perspective.lua

@@ -20,12 +20,12 @@ return {
     {
       name = 'fov',
       type = 'number',
-      description = 'The field of view (in radians).'
+      description = 'The vertical field of view (in radians).'
     },
     {
       name = 'aspect',
       type = 'number',
-      description = 'The vertical aspect ratio of the projection.'
+      description = 'The horizontal aspect ratio of the projection (width / height).'
     }
   },
   returns = {