Browse Source

Fix typo;

bjorn 2 years ago
parent
commit
ba997a21ff
2 changed files with 20 additions and 4 deletions
  1. 19 3
      api/init.lua
  2. 1 1
      api/lovr/graphics/Pass/send.lua

+ 19 - 3
api/init.lua

@@ -18504,7 +18504,7 @@ return {
               name = "send",
               name = "send",
               tag = "shader-inputs",
               tag = "shader-inputs",
               summary = "Set the value of a shader variable.",
               summary = "Set the value of a shader variable.",
-              description = "Sends a value to a variable in the Pass's active `Shader`.  The active shader is changed using using `Pass:setShader`.",
+              description = "Sends a value to a variable in the Pass's active `Shader`.  The active shader is changed using `Pass:setShader`.",
               key = "Pass:send",
               key = "Pass:send",
               module = "lovr.graphics",
               module = "lovr.graphics",
               examples = {
               examples = {
@@ -22982,7 +22982,7 @@ return {
         {
         {
           name = "gammaToLinear",
           name = "gammaToLinear",
           tag = "mathOther",
           tag = "mathOther",
-          summary = "\9Convert a color from gamma space to linear space.",
+          summary = "	Convert a color from gamma space to linear space.",
           description = "Converts a color from gamma space to linear space.",
           description = "Converts a color from gamma space to linear space.",
           key = "lovr.math.gammaToLinear",
           key = "lovr.math.gammaToLinear",
           module = "lovr.math",
           module = "lovr.math",
@@ -23095,7 +23095,7 @@ return {
         {
         {
           name = "linearToGamma",
           name = "linearToGamma",
           tag = "mathOther",
           tag = "mathOther",
-          summary = "\9Convert a color from linear space to gamma space.",
+          summary = "	Convert a color from linear space to gamma space.",
           description = "Converts a color from linear space to gamma space.",
           description = "Converts a color from linear space to gamma space.",
           key = "lovr.math.linearToGamma",
           key = "lovr.math.linearToGamma",
           module = "lovr.math",
           module = "lovr.math",
@@ -27598,6 +27598,22 @@ return {
                     }
                     }
                   }
                   }
                 },
                 },
+                {
+                  arguments = {
+                    {
+                      name = "q",
+                      type = "Quat",
+                      description = "A quat to use the direction of."
+                    }
+                  },
+                  returns = {
+                    {
+                      name = "v",
+                      type = "Vec3",
+                      description = "The input vector."
+                    }
+                  }
+                },
                 {
                 {
                   arguments = {
                   arguments = {
                     {
                     {

+ 1 - 1
api/lovr/graphics/Pass/send.lua

@@ -3,7 +3,7 @@ return {
   summary = 'Set the value of a shader variable.',
   summary = 'Set the value of a shader variable.',
   description = [[
   description = [[
     Sends a value to a variable in the Pass's active `Shader`.  The active shader is changed using
     Sends a value to a variable in the Pass's active `Shader`.  The active shader is changed using
-    using `Pass:setShader`.
+    `Pass:setShader`.
   ]],
   ]],
   arguments = {
   arguments = {
     name = {
     name = {