Functions

Shader:attr() Get a shader attribute
Shader:bind() Bind a shader
Shader.file GETSET The shader file
Shader:param(name, ...) Set a parameter
Shader:params() Get an iterator over the parameters
Shader:unbind() Unbind a shader

Functions

Shader:attr()

Get a shader attribute

Return:

  • The shader attribute
Shader:bind()

Bind a shader

Shader.file GETSET

The shader file

Shader:param(name, ...)

Set a parameter

Parameters:

name The parameter name
... The parameter values as a table or unpacked
Shader:params()

Get an iterator over the parameters

Return:

  • The iterator function
Shader:unbind()

Unbind a shader