dungeon/assets/main.frag

16 lines
259 B
GLSL
Raw Normal View History

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