clouds: remove terrain-height march breaks causing holes
This commit is contained in:
1 parent
661b59a295
commit
f25c7369cd
2 files changed
+1
-2
No files matched your search
Vendored
-1
@@ -501,7 +501,6 @@ var FRAG_SRC = [
|
||||
'p.y += (ign(gl_FragCoord.xy + vec2(float(i) * 7.13, float(i) * 3.71)) - 0.5) * stepSize;',
|
||||
'float py = p.y + earthDrop(p.xz);',
|
||||
'if (py > uCloudTop || py < uCloudBot - 0.1) break;',
|
||||
'if (uElevOn > 0.5 && py < terrElev(p.xz) * uElevScale) break;',
|
||||
'if (tTerrain > 0.0 && t >= tTerrain) break;',
|
||||
'float cSoft = smoothstep(7.0, 20.0, t);',
|
||||
'float d = cloudDensity(p, baseThresh, cSoft);',
|
||||
|
||||
Reference in new issue
Block a user