死亡预警在两个方向的宽度调整

This commit is contained in:
MrZ_26
2020-08-09 14:32:30 +08:00
parent e4258dad42
commit e746cf7bb1

View File

@@ -3,6 +3,6 @@ extern float level;
vec4 effect(vec4 color,Image text,vec2 pos,vec2 scr_pos){
float dx=abs(scr_pos.x/w-0.5);
float dy=abs(scr_pos.y/h-0.5);
float a=(max(dx,dy)*2.-.626)*level;
float a=(max(dx*2.6,dy*1.8)-.626)*level;
return vec4(1.,0.,0.,a);
}