diff options
| author | Ray <raysan5@gmail.com> | 2016-08-07 10:46:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-07 10:46:03 +0200 |
| commit | 46248b0922846e4beb386c5cf8fc12ebd3219b72 (patch) | |
| tree | 626f274af1edf2ccdbdb7fe2d307c96491dbc02f /examples/shaders_custom_uniform.lua | |
| parent | 306945fe147ea7742880635e77a5c2656f6e1fdc (diff) | |
| parent | 47b6e627449187f5385e9beafeda3b8517faae26 (diff) | |
| download | raylib-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.lua | 6 |
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 --------------------------------------------------------------------------------------- |
