Shader

From Wake
Jump to: navigation, search

Class: Shader

Type: native

Can Construct: yes

Description

A simple wrapper around GLSL shaders. Currently only supports vertex + fragment programs.

Functions

 Description
Shader.newLoad a shader from a pair of vertex/fragment programs.
Shader.resetReset which shader is currently being used.
Shader:getUniformGet a Uniform for this shader.
Shader:useUse a shader as the currently active program.

See Also