summaryrefslogtreecommitdiffhomepage
path: root/shaders/tile.frag
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-25 16:41:21 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-25 16:41:21 +0200
commit0d97856bf6974450a8e72816be7bf271af04a458 (patch)
treea503cf7d7330970b468310a9c05860b8fbc7f3e4 /shaders/tile.frag
parentf1df7c20129a1f1cc47c47e5731efd10f8e49aeb (diff)
rename shader
Diffstat (limited to 'shaders/tile.frag')
-rw-r--r--shaders/tile.frag11
1 files changed, 11 insertions, 0 deletions
diff --git a/shaders/tile.frag b/shaders/tile.frag
new file mode 100644
index 00000000..5c070ebe
--- /dev/null
+++ b/shaders/tile.frag
@@ -0,0 +1,11 @@
+precision highp float;
+
+uniform sampler2D sampler;
+layout (location = 2) uniform vec4 tint = vec4(1, 1, 1, 1);
+
+noperspective in vec2 frag_texcoords;
+out vec4 color;
+
+void main() {
+ color = vec4(texture(sampler, frag_texcoords).rgb, 1) * tint;
+}