bgfx/3rdparty/glslang/Test/spv.conditionalDiscard.frag

15 lines
199 B
GLSL
Raw Normal View History

2016-12-16 01:19:54 +03:00
#version 400
uniform sampler2D tex;
in vec2 coord;
void main (void)
{
vec4 v = texture(tex, coord);
if (v == vec4(0.1,0.2,0.3,0.4))
discard;
gl_FragColor = v;
}