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

Method AddChunk

renderer/shaman.go:95–98  ·  view source on GitHub ↗

AddChunk adds a shader chunk with the specified name and source code

(name, source string)

Source from the content-addressed store, hash-verified

93
94// AddChunk adds a shader chunk with the specified name and source code
95func (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
101func (sm *Shaman) AddShader(name, source string) {

Callers 1

AddDefaultShadersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected