Browse Source

Fix broken math object related links;

bjorn 4 years ago
parent
commit
42b0ae6c96
3 changed files with 9 additions and 9 deletions
  1. 5 5
      api/init.lua
  2. 3 3
      api/lovr/math/Mat4/rotate.lua
  3. 1 1
      api/lovr/math/Quat/unpack.lua

+ 5 - 5
api/init.lua

@@ -1352,7 +1352,7 @@ return {
           description = "Sets a mesh of triangles to use for modeling audio effects, using a table of vertices or a Model.  When the appropriate effects are enabled, audio from `Source` objects will correctly be occluded by walls and bounce around to create realistic reverb.\n\nAn optional `AudioMaterial` may be provided to specify the acoustic properties of the geometry.",
           description = "Sets a mesh of triangles to use for modeling audio effects, using a table of vertices or a Model.  When the appropriate effects are enabled, audio from `Source` objects will correctly be occluded by walls and bounce around to create realistic reverb.\n\nAn optional `AudioMaterial` may be provided to specify the acoustic properties of the geometry.",
           key = "lovr.audio.setGeometry",
           key = "lovr.audio.setGeometry",
           module = "lovr.audio",
           module = "lovr.audio",
-          notes = "This is currently only supported/used by the `phonon` spatializer.\n\nThe `Effect`s that use geometry are:\n\n- `occlusion`\n- `reverb`\n- `transmission`\n\nIf an existing geometry has been set, this function will replace it.",
+          notes = "This is currently only supported/used by the `phonon` spatializer.\n\nThe `Effect`s that use geometry are:\n\n- `occlusion`\n- `reverb`\n- `transmission`\n\nIf an existing geometry has been set, this function will replace it.\n\nThe triangles must use counterclockwise winding.",
           variants = {
           variants = {
             {
             {
               arguments = {
               arguments = {
@@ -16834,9 +16834,9 @@ return {
               key = "Mat4:rotate",
               key = "Mat4:rotate",
               module = "lovr.math",
               module = "lovr.math",
               related = {
               related = {
-                "mat4:translate",
-                "mat4:scale",
-                "mat4:identity"
+                "Mat4:translate",
+                "Mat4:scale",
+                "Mat4:identity"
               },
               },
               variants = {
               variants = {
                 {
                 {
@@ -17535,7 +17535,7 @@ return {
               key = "Quat:unpack",
               key = "Quat:unpack",
               module = "lovr.math",
               module = "lovr.math",
               related = {
               related = {
-                "quat:set"
+                "Quat:set"
               },
               },
               variants = {
               variants = {
                 {
                 {

+ 3 - 3
api/lovr/math/Mat4/rotate.lua

@@ -43,8 +43,8 @@ return {
     }
     }
   },
   },
   related = {
   related = {
-    'mat4:translate',
-    'mat4:scale',
-    'mat4:identity'
+    'Mat4:translate',
+    'Mat4:scale',
+    'Mat4:identity'
   }
   }
 }
 }

+ 1 - 1
api/lovr/math/Quat/unpack.lua

@@ -35,6 +35,6 @@ return {
     }
     }
   },
   },
   related = {
   related = {
-    'quat:set'
+    'Quat:set'
   }
   }
 }
 }