Skip to content

Commit

Permalink
fix application of faded/screen colors
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ol committed Nov 3, 2024
1 parent cf30df6 commit d32eddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shaders/cmyk.frag
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ void main() {
vec3 col = texcol;

col = (cameraCorrection * vec4(col, 1.0)).rgb;
col = smoothstep(stepRange.x, stepRange.y, col);
col = 1.0 - smoothstep(stepRange.x, stepRange.y, col);
col = mix(vec3(0), fadedcol, dot(col, lensColor));

gl_FragColor = vec4(1.0 - col, 1.0);
gl_FragColor = vec4(col, 1.0);
gl_FragColor.rgb = mix(gl_FragColor.rgb, texcol, globalMix);
}

0 comments on commit d32eddd

Please sign in to comment.