fix: clip cloud rays at terrain distance
This commit is contained in:
1 parent
8cca47f86e
commit
0ddaa80643
1 file changed
+1
Vendored
+1
@@ -703,6 +703,7 @@ var FRAG_SRC = [
|
||||
'vec3 pT = uCamPos + rd * dist;',
|
||||
'float terrainAlt = (pT.y + earthDrop(pT.xz)) / max(1.0, uTerrainExag);',
|
||||
'if (terrainAlt > uCloudTop + 0.05) { gl_FragColor = vec4(0.0); return; }',
|
||||
'tExit = min(tExit, dist - 0.02);',
|
||||
'}',
|
||||
'}',
|
||||
'tExit = min(tExit, tEnter + 30.0);',
|
||||
|
||||
Reference in new issue
Block a user