mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Changed some comments in the GLSL core shader file.
This commit is contained in:
parent
126d93709e
commit
064909bf96
|
@ -74,8 +74,8 @@ void main()
|
||||||
if (0x0u != (shaderFlags & 0x2u))
|
if (0x0u != (shaderFlags & 0x2u))
|
||||||
sampledColor = vec4(1.0, 1.0, 1.0, sampledColor.r);
|
sampledColor = vec4(1.0, 1.0, 1.0, sampledColor.r);
|
||||||
|
|
||||||
// Different color calculations depending on whether the texture contains premultiplied
|
// We need different color calculations depending on whether the texture contains
|
||||||
// alpha or straight alpha values.
|
// premultiplied alpha or straight alpha values.
|
||||||
if (0x0u != (shaderFlags & 0x01u)) {
|
if (0x0u != (shaderFlags & 0x01u)) {
|
||||||
sampledColor.rgb *= color.rgb;
|
sampledColor.rgb *= color.rgb;
|
||||||
sampledColor *= color.a;
|
sampledColor *= color.a;
|
||||||
|
@ -104,7 +104,7 @@ void main()
|
||||||
sampledColor = vec4(blendedColor, sampledColor.a);
|
sampledColor = vec4(blendedColor, sampledColor.a);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dimming
|
// Dimming.
|
||||||
if (dimming != 1.0) {
|
if (dimming != 1.0) {
|
||||||
vec4 dimColor = vec4(dimming, dimming, dimming, 1.0);
|
vec4 dimColor = vec4(dimming, dimming, dimming, 1.0);
|
||||||
sampledColor *= dimColor;
|
sampledColor *= dimColor;
|
||||||
|
|
Loading…
Reference in a new issue