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

Method AddGroupMaterial

graphic/mesh.go:65–68  ·  view source on GitHub ↗

AddGroupMaterial adds a material for the specified geometry group.

(imat material.IMaterial, gindex int)

Source from the content-addressed store, hash-verified

63
64// AddGroupMaterial adds a material for the specified geometry group.
65func (m *Mesh) AddGroupMaterial(imat material.IMaterial, gindex int) {
66
67 m.Graphic.AddGroupMaterial(m, imat, gindex)
68}
69
70// Clone clones the mesh and satisfies the INode interface.
71func (m *Mesh) Clone() core.INode {

Callers 3

newNodeMethod · 0.95
NewMeshMethod · 0.95
NewSkyboxFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected