Skip to content

raylib.SetModelMaterialShader

JoeStrout edited this page Nov 3, 2026 · 1 revision

Set the shader of one material of a model. Use this to shade a model with a custom shader; BeginShaderMode does not affect DrawModel. The script keeps ownership of the shader and must unload it with UnloadShader.

Parameters

Parameter Default Value Note
model
materialIndex
shader

Return value

None.

Notes

Clone this wiki locally