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
|
||||
pixelValue = 1.0;
|
||||
|
||||
if (0x0u != (shaderFlags & 0x01u))
|
||||
sampledColor *= pixelValue;
|
||||
else
|
||||
sampledColor.a *= pixelValue;
|
||||
sampledColor.rgb *= pixelValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue