diff --git a/resources/shaders/glsl/core.glsl b/resources/shaders/glsl/core.glsl index 32de8cd6f..b17415b03 100644 --- a/resources/shaders/glsl/core.glsl +++ b/resources/shaders/glsl/core.glsl @@ -72,8 +72,10 @@ void main() vec4 sampledColor = texture(textureSampler, texCoord); // Brightness. - if (brightness != 0.0) - sampledColor.rgb = sampledColor.rgb * pow(2.0, brightness); + if (brightness != 0.0) { + sampledColor.rgb += 0.3 * brightness; + sampledColor.rgb *= sampledColor.a; + } // Saturation. if (saturation != 1.0) { diff --git a/resources/shaders/glsl/scanlines.glsl b/resources/shaders/glsl/scanlines.glsl index aa24780e1..923e70290 100644 --- a/resources/shaders/glsl/scanlines.glsl +++ b/resources/shaders/glsl/scanlines.glsl @@ -157,8 +157,10 @@ void main() vec4 colorTemp = clamp(GAMMA_OUT(color), 0.0, 1.0); // Brightness. - if (brightness != 0.0) - colorTemp.rgb = colorTemp.rgb * pow(2.0, brightness); + if (brightness != 0.0) { + colorTemp.rgb += 0.3 * brightness; + colorTemp.rgb *= colorTemp.a; + } // Saturation. if (saturation != 1.0) {