A super module that collects available sub-modules.
- Source:
Methods
(static) exports.createProgram(gl, vShader, fShader, attributes, uniforms)
Create a WebGL Program with fragmentShader, vertexShader and
store attributes and uniforms in an object for easy access
Parameters:
Name | Type | Description |
---|---|---|
gl |
WebGL | WebGL Context |
vShader |
string | Source Code of the Vertex Shader |
fShader |
string | Source COde of the Fragment Shader |
attributes |
Array.<string> | Array of attribute names |
uniforms |
Array.<string> | Array of uniforms names |
- Source:
Returns:
program data
(static) exports.createTexture(gl, image)
Create webgl texture from an image object
Parameters:
Name | Type | Description |
---|---|---|
gl |
WebGL | |
image |
Image |
- Source:
Returns:
texture