Small fix to the bloom light, now feels smoother.

This commit is contained in:
Tleety
2016-01-22 10:52:45 +01:00
parent afe43c5f44
commit caf55fb8d1
+3 -1
View File
@@ -140,11 +140,13 @@ void main()
sceneColor = vec4(color_result.xyz, 1.0);
//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);
/*
if(color_result.x > 1 || color_result.y > 1 || color_result.z > 1) {
bloomColor = vec4(color_result.xyz, 1.0);
} else {
bloomColor = vec4(0.0, 0.0, 0.0, 1.0);
}
} */
//sceneColor += Input.DiffuseColor * (totalLighting.Diffuse) * diffuseTexel * Color;
//sceneColor += Input.DiffuseColor + vec4(0.0, LightGrids.Data[currentTile].Amount/3, 0, 1);