Fixed GUI color fading in renderer

This commit is contained in:
2015-10-08 21:49:45 +02:00
parent 08972919ae
commit c91cb1c3b7
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -20,11 +20,13 @@
layout (binding=0) uniform sampler2D DiffuseTexture;
uniform vec4 Color;
in vec2 TextureCoord;
out vec4 FragmentColor;
void main()
{
FragmentColor = texture(DiffuseTexture, TextureCoord);
FragmentColor = texture(DiffuseTexture, TextureCoord) * Color;
}