Creates a WebGLProgram instance based on the given vertex and fragment shader source.
Then compiles, attaches and links the program before returning it.
name | type | description |
---|---|---|
vertexShader | string |
The vertex shader source code as a single string. |
fragmentShader | string |
The fragment shader source code as a single string. |
The linked WebGLProgram created from the given shader source.