summaryrefslogtreecommitdiffstats
path: root/drivers/gles3
diff options
context:
space:
mode:
authorjsjtxietian <jsjtxietian@outlook.com>2024-08-15 11:44:11 +0800
committerRémi Verschelde <rverschelde@gmail.com>2024-09-16 16:42:01 +0200
commitb84dbab84d1913934f0e301b137cc6892666813c (patch)
treeea36f0dc58f7f14f72ed26e43e7f9daae47ed89d /drivers/gles3
parent1ebf488a4ec8e0a372a6097e7e90b78d47fca5b5 (diff)
downloadredot-engine-b84dbab84d1913934f0e301b137cc6892666813c.tar.gz
Fix undefined `alpha_scissor` in standard shader
(cherry picked from commit 970a237c203cd9a373b1846aa029effd2e4a288d)
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/shaders/scene.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl
index 6dd04af6b6..ba70de9e34 100644
--- a/drivers/gles3/shaders/scene.glsl
+++ b/drivers/gles3/shaders/scene.glsl
@@ -1871,7 +1871,7 @@ void main() {
alpha = min(alpha, clamp(length(ambient_light), 0.0, 1.0));
#if defined(ALPHA_SCISSOR_USED)
- if (alpha < alpha_scissor) {
+ if (alpha < alpha_scissor_threshold) {
discard;
}
#endif // !ALPHA_SCISSOR_USED