blob: 9e05d677fc57e425da97ae99bdccd0ac315998cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}
|