2017-09-17 13:43:13 +02:00
|
|
|
#version 330 core
|
|
|
|
|
|
|
|
uniform vec4 colortint;
|
|
|
|
uniform sampler2D textureSampler;
|
|
|
|
|
|
|
|
in vec2 UV;
|
|
|
|
|
|
|
|
out vec4 color;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
vec4 col = texture(textureSampler, UV);
|
|
|
|
if (col.rgb == vec3(1.0, 0.0, 1.0))
|
|
|
|
discard;
|
|
|
|
color = col * colortint;
|
2017-09-18 18:18:04 +02:00
|
|
|
//color = colortint;
|
2017-09-17 13:43:13 +02:00
|
|
|
}
|