diff options
author | jsjtxietian <jsjtxietian@outlook.com> | 2024-08-15 11:44:11 +0800 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-16 16:42:01 +0200 |
commit | b84dbab84d1913934f0e301b137cc6892666813c (patch) | |
tree | ea36f0dc58f7f14f72ed26e43e7f9daae47ed89d /drivers/gles3 | |
parent | 1ebf488a4ec8e0a372a6097e7e90b78d47fca5b5 (diff) | |
download | redot-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.glsl | 2 |
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 |