GetDroppedFiles and SetShaderValue in Lua working
Exposed Texture2D.id to Lua Lights now have settable/gettable fields
This commit is contained in:
parent
1950085893
commit
6f27941e28
3 changed files with 96 additions and 21 deletions
|
@ -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
|
||||
---------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue