aboutsummaryrefslogtreecommitdiff
path: root/examples/shaders_custom_uniform.lua
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-08-07 10:46:03 +0200
committerGitHub <noreply@github.com>2016-08-07 10:46:03 +0200
commit46248b0922846e4beb386c5cf8fc12ebd3219b72 (patch)
tree626f274af1edf2ccdbdb7fe2d307c96491dbc02f /examples/shaders_custom_uniform.lua
parent306945fe147ea7742880635e77a5c2656f6e1fdc (diff)
parent47b6e627449187f5385e9beafeda3b8517faae26 (diff)
downloadraylib-46248b0922846e4beb386c5cf8fc12ebd3219b72.tar.gz
raylib-46248b0922846e4beb386c5cf8fc12ebd3219b72.zip
Merge pull request #175 from ghassanpl/develop
More fixes for Lua
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
---------------------------------------------------------------------------------------