mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
discarding pixel if alpha is below threshold
This commit is contained in:
parent
0c8a712935
commit
60f35ce8c7
1 changed files with 3 additions and 0 deletions
|
@ -18,5 +18,8 @@ out vec4 outFragColor;
|
|||
|
||||
void main(void) {
|
||||
vec4 color = texture(colorMap, _texCoord0);
|
||||
if (color.a < 0.1) {
|
||||
discard;
|
||||
}
|
||||
outFragColor = color * _color;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue