Fix clouds3d: missing closing quote on long string literal at line 202
This commit is contained in:
1 parent
a2998bdf45
commit
0f54adefda
2 files changed
+1
-284
No files matched your search
Vendored
+1
-1
@@ -199,7 +199,7 @@ var FRAG_SRC = [
|
||||
// remain visible against a deep but not void-black sky.
|
||||
'float skyDarkness = nightFactor * 0.55;',
|
||||
'col = mix(col, col * (1.0 - skyDarkness), 1.0 - cloud);',
|
||||
'// Horizon: cast the ray onto the ground plane (y=0) and sample the satellite image at that world (x,z) coordinate. As the camera drifts forward over time the texture scrolls past, giving the illusion of flying over real terrain. Distant ground fades toward sky colour (atmospheric perspective).
|
||||
'// Horizon: cast the ray onto the ground plane (y=0) and sample the satellite image at that world (x,z) coordinate. As the camera drifts forward over time the texture scrolls past, giving the illusion of flying over real terrain. Distant ground fades toward sky colour (atmospheric perspective).',
|
||||
'float tGround = (ro.y > 0.0 && rd.y < -0.001) ? -ro.y / rd.y : -1.0;',
|
||||
'vec3 hitPoint = ro + rd * tGround;',
|
||||
'// UV from world (hitPoint - centre) / size + 0.5 — the mosaic moves with the camera so the centre is always at 0.5',
|
||||
|
||||
Reference in new issue
Block a user