diff options
| author | ghassanpl <kronikarz@gmail.com> | 2016-08-06 21:51:08 +0200 |
|---|---|---|
| committer | ghassanpl <kronikarz@gmail.com> | 2016-08-06 21:51:08 +0200 |
| commit | 6f27941e286eba9872d1c341b446c9d13272405a (patch) | |
| tree | 276258e9f56c444122cdff06a8cfebcc6b49f605 /examples/shaders_custom_uniform.lua | |
| parent | 1950085893f16d653f16ec0a0c991678e8c3cf53 (diff) | |
| download | raylib-6f27941e286eba9872d1c341b446c9d13272405a.tar.gz raylib-6f27941e286eba9872d1c341b446c9d13272405a.zip | |
GetDroppedFiles and SetShaderValue in Lua working
Exposed Texture2D.id to Lua
Lights now have settable/gettable fields
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 --------------------------------------------------------------------------------------- |
