Skip to content

Commit

Permalink
fix(shaders): strength actually works now
Browse files Browse the repository at this point in the history
  • Loading branch information
loqusion committed May 6, 2024
1 parent d03df35 commit 810acc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shaders/color-filter.glsl.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ void main() {
correction.r = 0.0;
correction.g = (diff.r * 0.7) + (diff.g * 1.0);
correction.b = (diff.r * 0.7) + (diff.b * 1.0);
correction = pixColor + correction;
correction.a = pixColor.a * Strength;
correction = mix(pixColor, pixColor + correction, Strength);

gl_FragColor = vec4(correction);
}
Expand Down

0 comments on commit 810acc7

Please sign in to comment.