Skip to content

Commit

Permalink
fix(draw): ensure that temporal AA's output will never fall negative
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Jan 16, 2021
1 parent 4da14fc commit 03a8b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Shaders/PostFilters/TemporalAA.fs
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ void main() {

antialiased = decodePalYuv(antialiased);

gl_FragColor = vec4(antialiased, mixRate);
gl_FragColor = vec4(max(antialiased, vec3(0.0)), mixRate);
}

0 comments on commit 03a8b97

Please sign in to comment.