Skip to content

raylib.SetShaderLoc

JoeStrout edited this page Nov 16, 2026 · 1 revision

Set one entry of a shader's location table (SHADER_LOC_MATRIX_MODEL, SHADER_LOC_VECTOR_VIEW...), usually to a location from GetShaderLocation, so raylib feeds that uniform or attribute when drawing. Every copy of the shader shares the table

Parameters

Parameter Default Value Note
shader
locIndex
location

Return value

None.

Notes

Clone this wiki locally