diff options
author | rom <romangraef@gmail.com> | 2021-04-24 03:19:22 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-24 11:08:22 +0200 |
commit | ec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe (patch) | |
tree | 21e44e889c91eeecc1537e69eae7d0b50d25804a /txtgameengine/builtin_res/shaders/font/fragment.glsl | |
parent | a0a40e9259b9e8be4e677c8c29dfdfb89eb81ce8 (diff) | |
download | txtgameengine-ec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe.tar.gz txtgameengine-ec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe.tar.bz2 txtgameengine-ec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe.zip |
font rendering
Diffstat (limited to 'txtgameengine/builtin_res/shaders/font/fragment.glsl')
-rw-r--r-- | txtgameengine/builtin_res/shaders/font/fragment.glsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/txtgameengine/builtin_res/shaders/font/fragment.glsl b/txtgameengine/builtin_res/shaders/font/fragment.glsl new file mode 100644 index 0000000..d9d36fd --- /dev/null +++ b/txtgameengine/builtin_res/shaders/font/fragment.glsl @@ -0,0 +1,12 @@ +#version 330 core + +in vec2 UV; + +out vec3 color; + +uniform sampler2D textureSampler; + +void main() { + color = texture(textureSampler, UV).rgb; +} + |