fix cumulunimbus lightning texture not appearing during thunder

This commit is contained in:
Merlin1809
2025-06-21 01:14:36 +02:00
parent c20649d3fe
commit d0930e1c5d
+1 -1
View File
@@ -602,7 +602,7 @@ bool isLightning = false;
float lightningDist = length(lightningpos);
if ((lightningDist < cloudDepth.r || cloudDepth.r == 0.0) && (thunderStrength > 1.0 || rainStrength == 0.0)) {
if ((lightningDist < cloudDepth.r || cloudDepth.r == 0.0) && (thunderStrength > 0.0 || rainStrength == 0.0)) {
vec2 tc = (gl_FragCoord.xy - 0.5)*texelSize;
float depth = z;