From a256fbb509af82c7b9c8a03224dfe225e0c123ca Mon Sep 17 00:00:00 2001 From: rom Date: Sat, 24 Apr 2021 13:21:39 +0200 Subject: text rendering lul --- txtgameengine/builtin_res/shaders/font/fragment.glsl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'txtgameengine/builtin_res/shaders/font/fragment.glsl') 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; } -- cgit