Skip to content

raylib.SetModelMaterialTexture

JoeStrout edited this page Nov 3, 2026 · 1 revision

Set the texture of one map (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...) of one material of a model. The script keeps ownership of the texture and must unload it with UnloadTexture.

Parameters

Parameter Default Value Note
model
materialIndex
mapType
texture

Return value

None.

Notes

Clone this wiki locally