SetMaterial clears all materials and adds the specified material for all vertices.
(imat material.IMaterial)
| 50 | |
| 51 | // SetMaterial clears all materials and adds the specified material for all vertices. |
| 52 | func (m *Mesh) SetMaterial(imat material.IMaterial) { |
| 53 | |
| 54 | m.Graphic.ClearMaterials() |
| 55 | m.Graphic.AddMaterial(m, imat, 0, 0) |
| 56 | } |
| 57 | |
| 58 | // AddMaterial adds a material for the specified subset of vertices. |
| 59 | func (m *Mesh) AddMaterial(imat material.IMaterial, start, count int) { |
nothing calls this directly
no test coverage detected