Shaders Class
Initialises the shaders.
Constructor
Shaders
()
Object
Returns:
Object:
The shader program containing the compiled shaders.
Item Index
Methods
Methods
compileShader
(
Object
-
code
-
type
Compiles an OpenGL shader from raw shader code.
Parameters:
-
code
StringThe uncompiled shader program.
-
type
StringThe type of shader to compiled (fragment or vertex).
Returns:
Object:
The compiled gl shader.