You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Set the material for a mesh
Parameters
Parameter
Default Value
Note
model
meshId
materialId
Return value
None.
Notes
Example
model=raylib.LoadModel("model.obj")
mats=raylib.LoadMaterials("model.mtl")
// Assign the first material to the first meshraylib.SetModelMeshMaterialmodel, 0, 0raylib.UnloadModelmodelformatinmatsraylib.UnloadMaterialmatendfor