From 064909bf965109096f6139198a88480b846462d4 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 28 Oct 2022 21:41:55 +0200 Subject: [PATCH] Changed some comments in the GLSL core shader file. --- resources/shaders/glsl/core.glsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/shaders/glsl/core.glsl b/resources/shaders/glsl/core.glsl index 44c2a726c..bcccf8eef 100644 --- a/resources/shaders/glsl/core.glsl +++ b/resources/shaders/glsl/core.glsl @@ -74,8 +74,8 @@ void main() if (0x0u != (shaderFlags & 0x2u)) sampledColor = vec4(1.0, 1.0, 1.0, sampledColor.r); - // Different color calculations depending on whether the texture contains premultiplied - // alpha or straight alpha values. + // We need different color calculations depending on whether the texture contains + // premultiplied alpha or straight alpha values. if (0x0u != (shaderFlags & 0x01u)) { sampledColor.rgb *= color.rgb; sampledColor *= color.a; @@ -104,7 +104,7 @@ void main() sampledColor = vec4(blendedColor, sampledColor.a); } - // Dimming + // Dimming. if (dimming != 1.0) { vec4 dimColor = vec4(dimming, dimming, dimming, 1.0); sampledColor *= dimColor;