SetUniformNames sets the names of the uniforms in the shader for sampler and texture info.
(sampler, info string)
| 145 | |
| 146 | // SetUniformNames sets the names of the uniforms in the shader for sampler and texture info. |
| 147 | func (t *Texture2D) SetUniformNames(sampler, info string) { |
| 148 | |
| 149 | t.uniUnit.Init(sampler) |
| 150 | t.uniInfo.Init(info) |
| 151 | } |
| 152 | |
| 153 | // GetUniformNames returns the names of the uniforms in the shader for sampler and texture info. |
| 154 | func (t *Texture2D) GetUniformNames() (sampler, info string) { |
no test coverage detected