AddChunk adds a shader chunk with the specified name and source code
(name, source string)
| 93 | |
| 94 | // AddChunk adds a shader chunk with the specified name and source code |
| 95 | func (sm *Shaman) AddChunk(name, source string) { |
| 96 | |
| 97 | sm.includes[name] = source |
| 98 | } |
| 99 | |
| 100 | // AddShader adds a shader program with the specified name and source code |
| 101 | func (sm *Shaman) AddShader(name, source string) { |