濒死警告不再遮挡屏幕上下边缘

This commit is contained in:
MrZ626
2021-06-11 23:38:37 +08:00
parent 0e50c54754
commit 11862e6fba
2 changed files with 2 additions and 4 deletions

View File

@@ -369,7 +369,6 @@ function love.resize(w,h)
WIDGET.resize(w,h)
SHADER.warning:send("w",w*SCR.dpi)
SHADER.warning:send("h",h*SCR.dpi)
end
function love.focus(f)
if f then

View File

@@ -1,8 +1,7 @@
extern float w,h;
extern float w;
extern float level;
vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
float dx=abs(scr_coords.x/w-0.5);
float dy=abs(scr_coords.y/h-0.5);
float a=(max(dx*2.6,dy*1.8)-.626)*level;
float a=(dx*2.6-.626)*level;
return vec4(1.,0.,0.,a);
}