新增游戏内方块和场地的亮度参数调整

This commit is contained in:
MrZ626
2021-07-08 03:57:18 +08:00
parent 7b227181f2
commit 03dad89787
13 changed files with 103 additions and 3 deletions

View File

@@ -17,6 +17,25 @@ function switchFullscreen()
love.window.setFullscreen(SETTING.fullscreen)
love.resize(gc.getWidth(),gc.getHeight())
end
do--function applyXxxSatur(mode)
local saturateValues={
normal={0,1},
soft={.2,.7},
grey={.4,.4},
light={.2,.8},
color={-.2,1.2},
}
function applyBlockSatur(mode)
local m=saturateValues[mode]or saturateValues.normal
SHADER.blockSatur:send('b',m[1])
SHADER.blockSatur:send('k',m[2])
end
function applyFieldSatur(mode)
local m=saturateValues[mode]or saturateValues.normal
SHADER.fieldSatur:send('b',m[1])
SHADER.fieldSatur:send('k',m[2])
end
end