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

Method AddShader

renderer/shaman.go:101–104  ·  view source on GitHub ↗

AddShader adds a shader program with the specified name and source code

(name, source string)

Source from the content-addressed store, hash-verified

99
100// AddShader adds a shader program with the specified name and source code
101func (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)

Callers 1

AddDefaultShadersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected