2018-10-30 16:58:07 +00:00
|
|
|
#version 140
|
|
|
|
|
|
|
|
uniform sampler2D tex;
|
|
|
|
uniform vec3 diffuse;
|
|
|
|
|
|
|
|
in vec3 v_color;
|
2018-10-31 10:55:17 +00:00
|
|
|
in vec2 v_tex_coords;
|
2018-10-30 16:58:07 +00:00
|
|
|
|
|
|
|
out vec4 color;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
|
2018-10-31 10:55:17 +00:00
|
|
|
color = vec4(v_color.x, v_color.y, v_color.z, 1.0);
|
2018-10-30 16:58:07 +00:00
|
|
|
|
2018-10-31 10:55:17 +00:00
|
|
|
if (texture(tex, v_tex_coords).a < 0.05) {
|
|
|
|
discard;
|
|
|
|
}
|
2018-10-30 16:58:07 +00:00
|
|
|
}
|
|
|
|
|