GetDroppedFiles and SetShaderValue in Lua working

Exposed Texture2D.id to Lua
Lights now have settable/gettable fields
This commit is contained in:
ghassanpl 2016-08-06 21:51:08 +02:00
parent 1950085893
commit 6f27941e28
3 changed files with 96 additions and 21 deletions

View file

@ -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
---------------------------------------------------------------------------------------