From db04c5102ae01b5ea03e15029c23aea107c4bbb7 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Thu, 19 Sep 2019 18:15:22 -0400 Subject: [PATCH] Update Bflyt.frag --- Toolbox/Shader/Layout/Legacy/Bflyt.frag | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Toolbox/Shader/Layout/Legacy/Bflyt.frag b/Toolbox/Shader/Layout/Legacy/Bflyt.frag index 57a134c8..1c65c766 100644 --- a/Toolbox/Shader/Layout/Legacy/Bflyt.frag +++ b/Toolbox/Shader/Layout/Legacy/Bflyt.frag @@ -34,9 +34,10 @@ void main() { // Convert to sRGB. vec3 whiteColorSRGB = pow(whiteColor.rgb, vec3(1.0 / gamma)); + vec3 blackColorSRGB = pow(blackColor.rgb, vec3(1.0 / gamma)); - vec3 whiteInterpolation = whiteColorSRGB.rgb * textureMap0.rgb; - vec3 blackInterpolation = (vec3(1) - textureMap0.rgb) * blackColor.rgb; + vec3 whiteInterpolation = whiteColor.rgb * textureMap0.rgb; + vec3 blackInterpolation = (vec3(1) - textureMap0.rgb) * blackColorSRGB.rgb; vec3 colorBlend = whiteInterpolation + blackInterpolation;