Browse Source

Pass:scale defaults;

bjorn 2 years ago
parent
commit
dd971ed4b6
2 changed files with 8 additions and 4 deletions
  1. 6 4
      api/init.lua
  2. 2 0
      api/lovr/graphics/Pass/scale.lua

+ 6 - 4
api/init.lua

@@ -18477,12 +18477,14 @@ return {
                     {
                     {
                       name = "sy",
                       name = "sy",
                       type = "number",
                       type = "number",
-                      description = "The y component of the scale."
+                      description = "The y component of the scale.",
+                      default = "sx"
                     },
                     },
                     {
                     {
                       name = "sz",
                       name = "sz",
                       type = "number",
                       type = "number",
-                      description = "The z component of the scale."
+                      description = "The z component of the scale.",
+                      default = "sx"
                     }
                     }
                   },
                   },
                   returns = {}
                   returns = {}
@@ -22982,7 +22984,7 @@ return {
         {
         {
           name = "gammaToLinear",
           name = "gammaToLinear",
           tag = "mathOther",
           tag = "mathOther",
-          summary = "	Convert a color from gamma space to linear space.",
+          summary = "\9Convert 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 +23097,7 @@ return {
         {
         {
           name = "linearToGamma",
           name = "linearToGamma",
           tag = "mathOther",
           tag = "mathOther",
-          summary = "	Convert a color from linear space to gamma space.",
+          summary = "\9Convert 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",

+ 2 - 0
api/lovr/graphics/Pass/scale.lua

@@ -9,10 +9,12 @@ return {
     },
     },
     sy = {
     sy = {
       type = 'number',
       type = 'number',
+      default = 'sx',
       description = 'The y component of the scale.'
       description = 'The y component of the scale.'
     },
     },
     sz = {
     sz = {
       type = 'number',
       type = 'number',
+      default = 'sx',
       description = 'The z component of the scale.'
       description = 'The z component of the scale.'
     },
     },
     scale = {
     scale = {