Browse Source

Fix skybox arguments;

bjorn 7 years ago
parent
commit
b414a9817c
2 changed files with 20 additions and 12 deletions
  1. 12 8
      api/init.lua
  2. 8 4
      api/lovr/graphics/skybox.lua

+ 12 - 8
api/init.lua

@@ -9384,22 +9384,26 @@ return {
                   type = "Texture",
                   description = "The texture to use."
                 },
-                ay = {
-                  type = "number",
-                  description = "The y coordinate of the axis of rotation.",
-                  default = "1"
-                },
-                angle = {
+                {
+                  name = "angle",
                   type = "number",
                   description = "How much to rotate the skybox around its axis of rotation.",
                   default = "0"
                 },
-                ax = {
+                {
+                  name = "ax",
                   type = "number",
                   description = "The x coordinate of the axis of rotation.",
                   default = "0"
                 },
-                az = {
+                {
+                  name = "ay",
+                  type = "number",
+                  description = "The y coordinate of the axis of rotation.",
+                  default = "1"
+                },
+                {
+                  name = "az",
                   type = "number",
                   description = "The z coordinate of the axis of rotation.",
                   default = "0"

+ 8 - 4
api/lovr/graphics/skybox.lua

@@ -12,22 +12,26 @@ return {
       type = 'Texture',
       description = 'The texture to use.'
     },
-    angle = {
+    {
+      name = 'angle',
       type = 'number',
       default = '0',
       description = 'How much to rotate the skybox around its axis of rotation.'
     },
-    ax = {
+    {
+      name = 'ax',
       type = 'number',
       default = '0',
       description = 'The x coordinate of the axis of rotation.'
     },
-    ay = {
+    {
+      name = 'ay',
       type = 'number',
       default = '1',
       description = 'The y coordinate of the axis of rotation.'
     },
-    az = {
+    {
+      name = 'az',
       type = 'number',
       default = '0',
       description = 'The z coordinate of the axis of rotation.'