Shader (class)

Shaders are small GPU programs that can modify vertecies and fragments. In LunaLua you can create Shader-Programs with the Shader-Class. A Shader-Object can then be used in conjunction with Graphics.glDraw.

The shader language used here is GLSL because the new render engine is implemented with OpenGL. Be sure to call Graphics.isOpenGLEnabled first to ensure that OpenGL is available. A quick start with GLSL can be found here.

Attribute/Uniform info
These are the values which you can query with Shader:getAttributeInfo and Shader:getUniformInfo