From 5edf5a41f136ea21a34ad57bb36dfb2bf87edba1 Mon Sep 17 00:00:00 2001 From: Tleety Date: Sat, 23 Jan 2016 16:45:26 +0100 Subject: [PATCH] Transparency bug fix --- resources/Shaders/ForwardPlus.frag.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/Shaders/ForwardPlus.frag.glsl b/resources/Shaders/ForwardPlus.frag.glsl index 403c96fc..e158640e 100644 --- a/resources/Shaders/ForwardPlus.frag.glsl +++ b/resources/Shaders/ForwardPlus.frag.glsl @@ -137,7 +137,7 @@ void main() //sceneColor += Input.DiffuseColor; vec4 color_result = Input.DiffuseColor * (totalLighting.Diffuse + totalLighting.Specular) * diffuseTexel * Color; //bloomColor = vec4(0.3, 0.8, 0.6, 1.0); - sceneColor = vec4(color_result.xyz, 1.0); + sceneColor = vec4(color_result.xyz, clamp(color_result.a, 0, 1)); //These if statements should be removed if they are slow. color_result += glowTexel; bloomColor = vec4(clamp(color_result.xyz - 1.0, 0, 100), 1.0);