Skip to content

Commit

Permalink
A bit of space for gathering frame color
Browse files Browse the repository at this point in the history
  • Loading branch information
pijulius authored May 28, 2024
1 parent a284d33 commit 66fd22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/gl/shaders.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const char blit_shader_glsl[] = GLSL(330,
vec4 default_post_processing(vec4 c) {
float additional_opacity = 1;
if (frame_opacity_fsc && frame_opacity > 0 && frame_opacity < 1) {
vec4 frame_color = texture(tex, vec2(0.0, 0.01));
vec4 frame_color = texture(tex, vec2(0.01, 0.01));
float color_diff = max(max(c.r - frame_color.r, c.g - frame_color.g), c.b - frame_color.b);
if (color_diff < 0)
color_diff *= -1;
Expand Down

0 comments on commit 66fd22f

Please sign in to comment.