mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-11 01:38:20 +08:00
why did I do this
This commit is contained in:
1 parent
d594e394b0
commit
a56cee64dd
1 file changed
+1
-1
@@ -602,7 +602,7 @@ bool isLightning = false;
|
||||
|
||||
float lightningDist = length(lightningpos);
|
||||
|
||||
if ((lightningDist < cloudDepth.r || cloudDepth.r == 0.0) && rainStrength + thunderStrength > 1.0) {
|
||||
if ((lightningDist < cloudDepth.r || cloudDepth.r == 0.0) && (thunderStrength > 1.0 || rainStrength == 0.0)) {
|
||||
vec2 tc = (gl_FragCoord.xy - 0.5)*texelSize;
|
||||
|
||||
float depth = z;
|
||||
|
||||
Reference in new issue
Block a user