-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.SetShaderValueV
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Set shader uniform value vector
| Parameter | Default Value | Note |
|---|---|---|
| shader | ||
| locIndex | ||
| value | ||
| uniformType | SHADER_UNIFORM_FLOAT | |
| count | 0 |
None.
shader = raylib.LoadShader(null, "shaders/lights.glsl")
loc = raylib.GetShaderLocation(shader, "lightPos")
positions = [100.0, 200.0, 300.0, 400.0]
raylib.SetShaderValueV shader, loc, positions, raylib.SHADER_UNIFORM_VEC2, 2