1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

OpenGL: Fix shader compilation failure with shadow_to_opacity and unshaded

This commit is contained in:
David Snopek
2025-06-06 16:29:22 -05:00
parent 26df04377e
commit d503810654

View File

@@ -2273,7 +2273,11 @@ void main() {
#if defined(USE_SHADOW_TO_OPACITY)
#ifndef MODE_RENDER_DEPTH
#ifndef MODE_UNSHADED
alpha = min(alpha, clamp(length(ambient_light), 0.0, 1.0));
#else
alpha = 0.0;
#endif
#if defined(ALPHA_SCISSOR_USED)
#ifdef RENDER_MATERIAL