You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
283 B
19 lines
283 B
#version 150
|
|
|
|
uniform sampler2DRect tex0;
|
|
|
|
in vec2 tex_c;
|
|
|
|
out vec4 outputColor;
|
|
|
|
void main()
|
|
{
|
|
vec4 texColor = texture(tex0, tex_c);
|
|
|
|
// Discard fragments with alpha below a threshold
|
|
if (texColor.a < 0.1) {
|
|
discard;
|
|
}
|
|
|
|
outputColor = texColor;
|
|
}
|
|
|