AddGroupMaterial adds a material for the specified geometry group.
(imat material.IMaterial, gindex int)
| 63 | |
| 64 | // AddGroupMaterial adds a material for the specified geometry group. |
| 65 | func (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. |
| 71 | func (m *Mesh) Clone() core.INode { |