This function sets the material for the mesh.
Parameter | Description |
---|---|
material | the material to set |
index | the material index to set, between 1 and 4 |
Each mesh can have up to four materials applied. Materials are blended with vertex material weights.