Fix opaque pre pass, closes #10472

This commit is contained in:
Juan Linietsky 2017-09-04 20:27:02 -03:00
parent 44adf75cd5
commit e611ff5f01
3 changed files with 41 additions and 40 deletions

View file

@ -1590,6 +1590,12 @@ FRAGMENT_SHADER_CODE
}
#endif
#ifdef USE_OPAQUE_PREPASS
if (alpha<0.99) {
discard;
}
#endif
#if defined(ENABLE_NORMALMAP)