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

Function IncludeSource

renderer/shaders/shaders.go:77–80  ·  view source on GitHub ↗

IncludeSource returns the source code of the specified shader include chunk. If the name is not found an empty string is returned.

(name string)

Source from the content-addressed store, hash-verified

75// IncludeSource returns the source code of the specified shader include chunk.
76// If the name is not found an empty string is returned.
77func IncludeSource(name string) string {
78
79 return includeMap[name]
80}
81
82// Shaders returns list with the names of all shaders currently in the default shaders registry.
83func Shaders() []string {

Callers 1

AddDefaultShadersMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected