summaryrefslogtreecommitdiff
path: root/txtgameengine/builtin_res/shaders/font
diff options
context:
space:
mode:
Diffstat (limited to 'txtgameengine/builtin_res/shaders/font')
-rw-r--r--txtgameengine/builtin_res/shaders/font/fragment.glsl5
1 files changed, 3 insertions, 2 deletions
diff --git a/txtgameengine/builtin_res/shaders/font/fragment.glsl b/txtgameengine/builtin_res/shaders/font/fragment.glsl
index d9d36fd..f670d57 100644
--- a/txtgameengine/builtin_res/shaders/font/fragment.glsl
+++ b/txtgameengine/builtin_res/shaders/font/fragment.glsl
@@ -2,11 +2,12 @@
in vec2 UV;
-out vec3 color;
+out vec4 color;
uniform sampler2D textureSampler;
void main() {
- color = texture(textureSampler, UV).rgb;
+ vec4 fontPixel = texture(textureSampler, UV);
+ color = fontPixel;
}