diff options
author | rom <romangraef@gmail.com> | 2021-04-24 13:21:39 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-24 13:21:39 +0200 |
commit | a256fbb509af82c7b9c8a03224dfe225e0c123ca (patch) | |
tree | 0ff81359b096469f79700d762d840e58f29bbf48 /txtgameengine/builtin_res/shaders/font/fragment.glsl | |
parent | ec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe (diff) | |
download | txtgameengine-a256fbb509af82c7b9c8a03224dfe225e0c123ca.tar.gz txtgameengine-a256fbb509af82c7b9c8a03224dfe225e0c123ca.tar.bz2 txtgameengine-a256fbb509af82c7b9c8a03224dfe225e0c123ca.zip |
Diffstat (limited to 'txtgameengine/builtin_res/shaders/font/fragment.glsl')
-rw-r--r-- | txtgameengine/builtin_res/shaders/font/fragment.glsl | 5 |
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; } |