diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-09-04 20:27:02 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-09-04 20:27:45 -0300 |
commit | e611ff5f0110210221a6f90250bdd65f5fb3ff2d (patch) | |
tree | 5bd62d6661946a304bded89e28351fe79c341d74 /drivers/gles3/shaders | |
parent | 44adf75cd53c22f146fc2e2dbba7d7efab3c0a0d (diff) |
Fix opaque pre pass, closes #10472
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r-- | drivers/gles3/shaders/scene.glsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index 7c60a8ee97..c699f1fe8c 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -1590,6 +1590,12 @@ FRAGMENT_SHADER_CODE } #endif +#ifdef USE_OPAQUE_PREPASS + + if (alpha<0.99) { + discard; + } +#endif #if defined(ENABLE_NORMALMAP) |