dungeon/assets/main.frag
2017-09-17 14:45:57 +02:00

15 lines
259 B
GLSL

#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;
}