summaryrefslogtreecommitdiffhomepage
path: root/examples/shaders/shaders_custom_uniform.c
diff options
context:
space:
mode:
authorRay <[email protected]>2019-01-10 11:25:26 +0100
committerRay <[email protected]>2019-01-10 11:25:26 +0100
commit55f8dbc755c2e31d2112e71439fef0d31e8090a6 (patch)
treee55e8b27cf4ef488167acd7bac9ec8a62c92ac97 /examples/shaders/shaders_custom_uniform.c
parent7c4a0f963dfc6f089337158ea6b78b84f4022368 (diff)
downloadraylib-55f8dbc755c2e31d2112e71439fef0d31e8090a6.tar.gz
raylib-55f8dbc755c2e31d2112e71439fef0d31e8090a6.zip
WARNING: Redesigned SetShaderValue()
Diffstat (limited to 'examples/shaders/shaders_custom_uniform.c')
-rw-r--r--examples/shaders/shaders_custom_uniform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shaders/shaders_custom_uniform.c b/examples/shaders/shaders_custom_uniform.c
index de76a376..fbfd82d0 100644
--- a/examples/shaders/shaders_custom_uniform.c
+++ b/examples/shaders/shaders_custom_uniform.c
@@ -79,7 +79,7 @@ int main()
swirlCenter[1] = screenHeight - mousePosition.y;
// Send new value to the shader to be used on drawing
- SetShaderValue(shader, swirlCenterLoc, swirlCenter, 2);
+ SetShaderValue(shader, swirlCenterLoc, swirlCenter, UNIFORM_VEC2);
UpdateCamera(&camera); // Update camera
//----------------------------------------------------------------------------------