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

Method SetShader

material/material.go:160–163  ·  view source on GitHub ↗

SetShader sets the name of the shader program for this material

(sname string)

Source from the content-addressed store, hash-verified

158
159// SetShader sets the name of the shader program for this material
160func (mat *Material) SetShader(sname string) {
161
162 mat.shader = sname
163}
164
165// Shader returns the current name of the shader program for this material
166func (mat *Material) Shader() string {

Callers 5

NewPhysicalFunction · 0.80
NewBasicFunction · 0.80
InitMethod · 0.80
InitMethod · 0.80
InitializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected