2017-12-29 05:10:51 -05:00
|
|
|
#stk_include "utils/sp_texture_sampling.frag"
|
2017-12-25 01:00:10 -05:00
|
|
|
|
|
|
|
in vec2 uv;
|
|
|
|
out vec4 o_frag_color;
|
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2018-01-21 21:43:22 -05:00
|
|
|
vec4 col = sampleTextureLayer0(uv);
|
2017-12-25 01:00:10 -05:00
|
|
|
if (col.a < 0.5)
|
|
|
|
{
|
|
|
|
discard;
|
|
|
|
}
|
|
|
|
o_frag_color = vec4(1.0);
|
|
|
|
}
|