This method sets the mesh material.
Parameter | Description |
---|---|
material | mesh material to set, or NULL for no material |
index | mesh material index to set, between 0 and 3 |
Each mesh can have up to four materials applied. Materials are blended with vertex material weights.