Fixed an issue where applying rounded corners caused rendering artfifacts if the texture did not use premultiplied alpha

This commit is contained in:
Leon Styhre 2025-02-09 17:35:59 +01:00
parent f70f823701
commit ba5f85c74c

View file

@ -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;
} }
} }