summaryrefslogtreecommitdiff
path: root/drivers/gles3/shaders
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-09-04 20:27:02 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-09-04 20:27:45 -0300
commite611ff5f0110210221a6f90250bdd65f5fb3ff2d (patch)
tree5bd62d6661946a304bded89e28351fe79c341d74 /drivers/gles3/shaders
parent44adf75cd53c22f146fc2e2dbba7d7efab3c0a0d (diff)
Fix opaque pre pass, closes #10472
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r--drivers/gles3/shaders/scene.glsl6
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)