working on shaders

This commit is contained in:
2026-05-17 22:50:49 -07:00
parent 3f1d83f790
commit 1886b909d4
4 changed files with 309 additions and 1 deletions
+19 -1
View File
@@ -38,6 +38,24 @@ function love.load()
bg:fullFrame()
bg.color = color.new("#242f9b")
local btn = bg:newImageButton("rainbow.jpg", 100, 100, 600, 450)
btn.color = color.light_blue
btn.align = gui.ALIGN_CENTER
btn.direction = {1,0}
btn:enableShaderTime()
btn.OnEnter(function()
btn:setShader(gui.SHADERS.blur)
end)
btn.OnExit(function()
btn:setShader()
end)
-- btn:fitFont()
-- btn:centerFont()
-- bg:setBlur(10)
bg:OnUpdate(function(self, dt)
if self.__blur then
@@ -47,7 +65,7 @@ function love.load()
end
end)
StartGame(bg)
-- StartGame(bg)
end
function GetActivePlayer()