summaryrefslogtreecommitdiffhomepage
path: root/shaders/shader.frag
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-14 13:28:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-14 13:28:03 +0200
commit5b9a452383b6bff5f2300c495943f2158f470faa (patch)
treecea216be2b42f209db751d98ede82fe70bf47abb /shaders/shader.frag
parent7b760eb180d9c0e3362589a7339b498bd420cd58 (diff)
rename shader
Diffstat (limited to 'shaders/shader.frag')
-rw-r--r--shaders/shader.frag14
1 files changed, 14 insertions, 0 deletions
diff --git a/shaders/shader.frag b/shaders/shader.frag
new file mode 100644
index 00000000..9e05d677
--- /dev/null
+++ b/shaders/shader.frag
@@ -0,0 +1,14 @@
+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;
+//layout (depth_greater) out float gl_FragDepth;
+
+void main() {
+ color = texture(sampler, frag_texcoords) * tint;
+ if (color.a == 0)
+ discard;
+}