Browse Source

Fix newShader;

bjorn 5 years ago
parent
commit
0b41784b3d
2 changed files with 12 additions and 0 deletions
  1. 0 0
      api/init.lua
  2. 12 0
      api/lovr/graphics/newShader.lua

File diff suppressed because it is too large
+ 0 - 0
api/init.lua


+ 12 - 0
api/lovr/graphics/newShader.lua

@@ -48,6 +48,18 @@ return {
       description = 'The new Shader.'
     }
   },
+  variants = {
+    {
+      description = 'Create a Shader with custom GLSL code.',
+      arguments = { 'vertex', 'fragment', 'options' },
+      returns = { 'shader' },
+    },
+    {
+      description = 'Create a new instance of a built-in Shader.',
+      arguments = { 'default', 'options' },
+      returns = { 'shader' },
+    }
+  },
   notes = [[
     The `flags` table should contain string keys, with boolean or numeric values.  These flags can
     be used to customize the behavior of Shaders from Lua, by using the flags in the shader source

Some files were not shown because too many files changed in this diff