summaryrefslogtreecommitdiff
path: root/txtgameengine/builtin_res/shaders/font/fragment.glsl
diff options
context:
space:
mode:
authorrom <romangraef@gmail.com>2021-04-24 13:21:39 +0200
committerrom <romangraef@gmail.com>2021-04-24 13:21:39 +0200
commita256fbb509af82c7b9c8a03224dfe225e0c123ca (patch)
tree0ff81359b096469f79700d762d840e58f29bbf48 /txtgameengine/builtin_res/shaders/font/fragment.glsl
parentec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe (diff)
downloadtxtgameengine-master.tar.gz
txtgameengine-master.tar.bz2
txtgameengine-master.zip
text rendering lulHEADmaster
Diffstat (limited to 'txtgameengine/builtin_res/shaders/font/fragment.glsl')
-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;
}