Skip to content

Commit

Permalink
Fix issue in shadow to opacity in GLES3
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiaanOlij committed Apr 24, 2024
1 parent 7abe0c6 commit e37cdda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gles3/shaders/scene.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -1844,12 +1844,14 @@ void main() {
#endif // !MODE_RENDER_DEPTH

#if defined(USE_SHADOW_TO_OPACITY)
#ifndef MODE_RENDER_DEPTH
alpha = min(alpha, clamp(length(ambient_light), 0.0, 1.0));

#if defined(ALPHA_SCISSOR_USED)
if (alpha < alpha_scissor) {
discard;
}
#endif // !MODE_RENDER_DEPTH
#else
#ifdef MODE_RENDER_DEPTH
#ifdef USE_OPAQUE_PREPASS
Expand Down

0 comments on commit e37cdda

Please sign in to comment.