mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Minor graphics fixes
This commit is contained in:
@@ -25,7 +25,6 @@ local shadersPanel
|
||||
function Shaders.init()
|
||||
importStyle 'shaders.otui'
|
||||
|
||||
|
||||
Keyboard.bindKeyDown(HOTKEY, Shaders.toggle)
|
||||
|
||||
shadersPanel = createWidget('ShadersPanel', GameInterface.getMapPanel())
|
||||
@@ -37,6 +36,8 @@ function Shaders.init()
|
||||
map:setMapShader(g_shaders.getShader(option))
|
||||
end
|
||||
|
||||
if not g_graphics.canUseShaders() then return end
|
||||
|
||||
for _i,opts in pairs(MAP_SHADERS) do
|
||||
local shader = g_shaders.createFragmentShader(opts.name, opts.frag)
|
||||
|
||||
|
Reference in New Issue
Block a user