aboutsummaryrefslogtreecommitdiff
path: root/examples/shaders_custom_uniform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shaders_custom_uniform.lua')
-rw-r--r--examples/shaders_custom_uniform.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/shaders_custom_uniform.lua b/examples/shaders_custom_uniform.lua
index fb93adc1..3a8bbae5 100644
--- a/examples/shaders_custom_uniform.lua
+++ b/examples/shaders_custom_uniform.lua
@@ -60,11 +60,11 @@ while not WindowShouldClose() do -- Detect window close button or ESC key
---------------------------------------------------------------------------------------
local mousePosition = GetMousePosition()
- swirlCenter[0] = mousePosition.x
- swirlCenter[1] = screenHeight - mousePosition.y
+ swirlCenter[1] = mousePosition.x
+ swirlCenter[2] = screenHeight - mousePosition.y
-- Send new value to the shader to be used on drawing
- SetShaderValue(shader, swirlCenterLoc, swirlCenter, 2)
+ SetShaderValue(shader, swirlCenterLoc, swirlCenter)
camera = UpdateCamera(camera) -- Update internal camera and our camera
---------------------------------------------------------------------------------------