Naev

Module shader

Lua bindings to interact with shaders.

Functions

__gc (shader) Frees a shader.
__eq (f1, f2) Compares two shaders to see if they are the same.
new (vertex, fragment) Creates a new shader.


Functions

__gc (shader)
Frees a shader.

Parameters:

  • shader Shader Shader to free.
__eq (f1, f2)
Compares two shaders to see if they are the same.

Parameters:

  • f1 Shader Shader 1 to compare.
  • f2 Shader Shader 2 to compare.

Returns:

    boolean true if both shaders are the same.
new (vertex, fragment)
Creates a new shader.

Parameters:

  • vertex string Script containing the vertex shader.
  • fragment string String containing the fragment shader.

Returns:

    Shader A newly created shader.
generated by LDoc 1.4.6 Last updated 2021-01-17 05:05:08