Shader.new

From Wake
Jump to: navigation, search

Load a shader from a pair of vertex/fragment programs.

Function

Synopsis

shader = Shader.new(vertexShader, fragmentShader)

Arguments

string vertexShader

Source of the vertex shader.


string fragmentShader

Source of the fragment shader.

Returns

Shader shader

The shader program, or nil if the program was not created successfully.

See Also