瀏覽代碼

Fix Mat4:perspective;

bjorn 3 年之前
父節點
當前提交
2e0e8829f6
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      api/init.lua
  2. 2 2
      api/lovr/math/Mat4/perspective.lua

+ 2 - 2
api/init.lua

@@ -15921,12 +15921,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 = {