diff options
author | rom <romangraef@gmail.com> | 2021-04-24 01:56:51 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-24 01:56:51 +0200 |
commit | 156114359f6bb26a3cca198ac7a31bddc44381f7 (patch) | |
tree | a830599ffe4bc502d766861da8787c063b7a1a47 /txtgameengine/builtin_res/shaders/texture/fragment.glsl | |
parent | 79a6c6b13f42a6a2cd4a1b0dd4a93e25756e1b87 (diff) | |
download | txtgameengine-156114359f6bb26a3cca198ac7a31bddc44381f7.tar.gz txtgameengine-156114359f6bb26a3cca198ac7a31bddc44381f7.tar.bz2 txtgameengine-156114359f6bb26a3cca198ac7a31bddc44381f7.zip |
fonts
Diffstat (limited to 'txtgameengine/builtin_res/shaders/texture/fragment.glsl')
-rw-r--r-- | txtgameengine/builtin_res/shaders/texture/fragment.glsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/txtgameengine/builtin_res/shaders/texture/fragment.glsl b/txtgameengine/builtin_res/shaders/texture/fragment.glsl new file mode 100644 index 0000000..d9d36fd --- /dev/null +++ b/txtgameengine/builtin_res/shaders/texture/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; +} + |