MCPcopy
hub / github.com/g3n/engine / SetUniformNames

Method SetUniformNames

texture/texture2D.go:147–151  ·  view source on GitHub ↗

SetUniformNames sets the names of the uniforms in the shader for sampler and texture info.

(sampler, info string)

Source from the content-addressed store, hash-verified

145
146// SetUniformNames sets the names of the uniforms in the shader for sampler and texture info.
147func (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.
154func (t *Texture2D) GetUniformNames() (sampler, info string) {

Callers 5

SetBaseColorMapMethod · 0.80
SetNormalMapMethod · 0.80
SetOcclusionMapMethod · 0.80
SetEmissiveMapMethod · 0.80

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected