mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed an issue where applying rounded corners caused rendering artfifacts if the texture did not use premultiplied alpha
This commit is contained in:
parent
f70f823701
commit
ba5f85c74c
|
|
@ -107,8 +107,10 @@ void main()
|
||||||
else
|
else
|
||||||
pixelValue = 1.0;
|
pixelValue = 1.0;
|
||||||
|
|
||||||
sampledColor.a *= pixelValue;
|
if (0x0u != (shaderFlags & 0x01u))
|
||||||
sampledColor.rgb *= pixelValue;
|
sampledColor *= pixelValue;
|
||||||
|
else
|
||||||
|
sampledColor.a *= pixelValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue