diff options
Diffstat (limited to 'examples/shaders/shaders_custom_uniform.c')
| -rw-r--r-- | examples/shaders/shaders_custom_uniform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shaders/shaders_custom_uniform.c b/examples/shaders/shaders_custom_uniform.c index 802ec3ba..401328e0 100644 --- a/examples/shaders/shaders_custom_uniform.c +++ b/examples/shaders/shaders_custom_uniform.c @@ -78,6 +78,8 @@ int main(void) { // Update //---------------------------------------------------------------------------------- + UpdateCamera(&camera); + Vector2 mousePosition = GetMousePosition(); swirlCenter[0] = mousePosition.x; @@ -85,8 +87,6 @@ int main(void) // Send new value to the shader to be used on drawing SetShaderValue(shader, swirlCenterLoc, swirlCenter, SHADER_UNIFORM_VEC2); - - UpdateCamera(&camera); // Update camera //---------------------------------------------------------------------------------- // Draw |
