mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-10 04:53:07 +08:00
fix cumulunimbus lightning texture not appearing during thunder
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user