MCPcopy Index your code
hub / github.com/g3n/engine / NewBasic

Function NewBasic

material/basic.go:13–19  ·  view source on GitHub ↗

NewBasic returns a pointer to a new Basic material

()

Source from the content-addressed store, hash-verified

11
12// NewBasic returns a pointer to a new Basic material
13func NewBasic() *Basic {
14
15 mb := new(Basic)
16 mb.Material.Init()
17 mb.SetShader("basic")
18 return mb
19}

Callers 3

newNodeMethod · 0.92
NewGridFunction · 0.92
NewAxesFunction · 0.92

Calls 2

SetShaderMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected