1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Merge pull request #107238 from dsnopek/opengl-shadow-to-opacity-plus-unshaded

OpenGL: Fix shader compilation failure with `shadow_to_opacity` and `unshaded`
This commit is contained in:
Thaddeus Crews
2025-06-09 17:08:42 -05:00

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