summaryrefslogtreecommitdiffhomepage
path: root/shaders/shader.frag
diff options
context:
space:
mode:
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;
+}