Make snapshot guides more visible

meow-7.2.2
PanteraPolnocy 2025-10-09 23:47:19 +02:00
parent f6c29b0356
commit c1c6f1ed5e
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ void main()
vec4 frame_rect_px = vec4(frame_rect.x * screen_res.x, frame_rect.y * screen_res.y, frame_rect.z * screen_res.x, frame_rect.w * screen_res.y);
vec4 border_rect_px = vec4(
(frame_rect.x * screen_res.x) - border_thickness,
(frame_rect.y * screen_res.y) - border_thickness,
(frame_rect.y * screen_res.y) - border_thickness,
(frame_rect.z * screen_res.x) + border_thickness,
(frame_rect.w * screen_res.y) + border_thickness);
@ -30,7 +30,7 @@ void main()
{
// Simple box blur
vec3 blur_color = vec3(0.0);
float blur_size = 2;
float blur_size = 2;
int blur_samples = 9;
for (int x = -1; x <= 1; ++x)
@ -44,7 +44,7 @@ void main()
blur_color /= float(blur_samples);
float gray = dot(blur_color, vec3(0.299, 0.587, 0.114));
diff.rgb = vec3(gray);
diff.rgb = vec3(gray);
}
else
{
@ -68,7 +68,7 @@ void main()
(tc.y > frame_rect_px.y + third_y - guide_thickness && tc.y < frame_rect_px.y + third_y + guide_thickness) ||
(tc.y > frame_rect_px.y + 2.0 * third_y - guide_thickness && tc.y < frame_rect_px.y + 2.0 * third_y + guide_thickness))
{
diff.rgb = mix(diff.rgb, guide_color, 0.05);
diff.rgb = mix(diff.rgb, guide_color, 0.5);
}
}
}