Class Shader
This class is meant to be subclassed for every glsl shader.
uniforms and attributes have to be specified in initUniforms and initAttributes
Defined in: Shader.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Shader(name, vertexShader, fragmentShader)
|
Method Attributes | Method Name and Description |
---|---|
relink()
|
|
setFragmentShaderName(name)
|
|
setVertexShaderName(name)
|
Class Detail
Shader(name, vertexShader, fragmentShader)
- Parameters:
- name
- vertexShader
- fragmentShader
Method Detail
initAttributes()
initUniforms()
relink()
setFragmentShaderName(name)
- Parameters:
- name
setVertexShaderName(name)
- Parameters:
- name