Glow Intencity can now be changed in the model component.

This commit is contained in:
Tleety
2016-02-16 14:57:21 +01:00
parent 4214bf10a1
commit 6bc7131290
5 changed files with 15 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ uniform vec2 ScreenDimensions;
uniform vec4 FillColor;
uniform vec4 AmbientColor;
uniform float FillPercentage;
uniform float GlowIntensity = 10;
uniform vec2 DiffuseUVRepeat;
uniform vec2 NormalUVRepeat;
@@ -166,7 +167,7 @@ void main()
color_result += FillColor;
}
sceneColor = vec4(color_result.xyz, clamp(color_result.a, 0, 1));
color_result += glowTexel*3;
color_result += glowTexel*GlowIntensity;
bloomColor = vec4(clamp(color_result.xyz - 1.0, 0, 100), 1.0);