Skip to content

Commit

Permalink
GS-hw: Apply clamp/wrap when FBMask enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 authored and lightningterror committed Feb 11, 2022
1 parent a44fe29 commit ad41594
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/resources/shaders/dx11/tfx.fx
Expand Up @@ -717,7 +717,7 @@ void ps_color_clamp_wrap(inout float3 C)
{
// When dithering the bottom 3 bits become meaningless and cause lines in the picture
// so we need to limit the color depth on dithered items
if (SW_BLEND || PS_DITHER)
if (SW_BLEND || PS_DITHER || PS_FBMASK)
{
// Standard Clamp
if (PS_COLCLIP == 0 && PS_HDR == 0)
Expand Down
2 changes: 1 addition & 1 deletion bin/resources/shaders/opengl/tfx_fs.glsl
Expand Up @@ -633,7 +633,7 @@ void ps_color_clamp_wrap(inout vec3 C)
{
// When dithering the bottom 3 bits become meaningless and cause lines in the picture
// so we need to limit the color depth on dithered items
#if SW_BLEND || PS_DITHER
#if SW_BLEND || PS_DITHER || PS_FBMASK

// Correct the Color value based on the output format
#if PS_COLCLIP == 0 && PS_HDR == 0
Expand Down
2 changes: 1 addition & 1 deletion bin/resources/shaders/vulkan/tfx.glsl
Expand Up @@ -966,7 +966,7 @@ void ps_color_clamp_wrap(inout vec3 C)
{
// When dithering the bottom 3 bits become meaningless and cause lines in the picture
// so we need to limit the color depth on dithered items
#if SW_BLEND || PS_DITHER
#if SW_BLEND || PS_DITHER || PS_FBMASK

// Correct the Color value based on the output format
#if PS_COLCLIP == 0 && PS_HDR == 0
Expand Down

0 comments on commit ad41594

Please sign in to comment.