Skip to content

raylib.GetMaterialShaderLocationAttrib

JoeStrout edited this page Apr 29, 2026 · 2 revisions

GetMaterialShaderLocationAttrib

Parameters

Parameter Default Value Note
material
attribName

Return value

Condition Return Value
(always) number

Notes

Example

shader = raylib.LoadShader("vert.glsl", "frag.glsl")
mat = raylib.LoadMaterialDefault
raylib.SetMaterialShader mat, shader
loc = raylib.GetMaterialShaderLocationAttrib(mat, "vertexTexCoord2")
print "Attrib location: " + loc
raylib.UnloadMaterial mat
raylib.UnloadShader shader

Clone this wiki locally