Skip to content

Commit 6bb1318

Browse files
committed
Merge pull request #107238 from dsnopek/opengl-shadow-to-opacity-plus-unshaded
OpenGL: Fix shader compilation failure with `shadow_to_opacity` and `unshaded`
2 parents 8ecc6da + d503810 commit 6bb1318

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gles3/shaders/scene.glsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,11 @@ void main() {
22732273

22742274
#if defined(USE_SHADOW_TO_OPACITY)
22752275
#ifndef MODE_RENDER_DEPTH
2276+
#ifndef MODE_UNSHADED
22762277
alpha = min(alpha, clamp(length(ambient_light), 0.0, 1.0));
2278+
#else
2279+
alpha = 0.0;
2280+
#endif
22772281

22782282
#if defined(ALPHA_SCISSOR_USED)
22792283
#ifdef RENDER_MATERIAL

0 commit comments

Comments
 (0)