AddShader adds a shader program with the specified name and source code
(name, source string)
| 99 | |
| 100 | // AddShader adds a shader program with the specified name and source code |
| 101 | func (sm *Shaman) AddShader(name, source string) { |
| 102 | |
| 103 | sm.shadersm[name] = source |
| 104 | } |
| 105 | |
| 106 | // AddProgram adds a program with the specified name and associated vertex |
| 107 | // and fragment shaders names (previously registered) |