mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Fixed a premultiplied alpha shader issue that lead to artifacting when brightness was adjusted.
This commit is contained in:
parent
dcc99cf352
commit
c63fd2e72b
|
@ -73,6 +73,7 @@ void main()
|
|||
|
||||
// Brightness.
|
||||
if (brightness != 0.0) {
|
||||
sampledColor.rgb /= sampledColor.a;
|
||||
sampledColor.rgb += 0.3 * brightness;
|
||||
sampledColor.rgb *= sampledColor.a;
|
||||
}
|
||||
|
|
|
@ -158,6 +158,7 @@ void main()
|
|||
|
||||
// Brightness.
|
||||
if (brightness != 0.0) {
|
||||
colorTemp.rgb /= colorTemp.a;
|
||||
colorTemp.rgb += 0.3 * brightness;
|
||||
colorTemp.rgb *= colorTemp.a;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue