Text renderer up and working, needs more work to be compatible with the ResourceManager and the Entity Component system

This commit is contained in:
viktorljung
2015-12-11 16:12:29 +01:00
parent 8f007f6daf
commit a8a38716bd
8 changed files with 239 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
#version 430
in vec2 TexCoords;
out vec4 color;
uniform sampler2D text;
uniform vec3 textColor;
void main()
{
vec4 sampled = vec4(1.0, 1.0, 1.0, texture(text, TexCoords).r);
color = vec4(textColor, 1.0) * sampled;
}