-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.SetModelMeshMaterial
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Set the material for a mesh
| Parameter | Default Value | Note |
|---|---|---|
| model | ||
| meshId | ||
| materialId |
None.
model = raylib.LoadModel("model.obj")
mats = raylib.LoadMaterials("model.mtl")
// Assign the first material to the first mesh
raylib.SetModelMeshMaterial model, 0, 0
raylib.UnloadModel model
for mat in mats
raylib.UnloadMaterial mat
end for