iterami/Docs.htm/common HTM Projects/webgl.js/webgl_shader(args)
- Compiles fragment and vertex shaders, attaches them to a program, and links the program.
- Uses the "id" arg to add a shader to "webgl_shaders", which includes:
- 'attributes': attribute locations.
- 'program': the created and linked program.
- 'uniforms': uniform locations.
- webgl_shader_use(id) is called to use the created shader program.
attributes
|
| array of strings
|
fragment
|
| string
|
id
|
| string
|
uniforms
|
| object
|
vertex
|
| string
|