feat: wire vertical exaggeration through the shell #13

Merged
moldybits merged 25 commits from feat/terrain-gen-abstraction into main 2026-05-20 23:00:29 -04:00
Showing only changes of commit 3c7b10c7b5 - Show all commits
+1 -1
View File
@@ -379,7 +379,7 @@ pub fn render_perspective_with_quality(
if let Some(terrain_h) = sample_height_bilinear(grid, p.x, p.z) { if let Some(terrain_h) = sample_height_bilinear(grid, p.x, p.z) {
let terrain_h = terrain_height(scene, terrain_h); let terrain_h = terrain_height(scene, terrain_h);
if p.y <= terrain_h { if p.y <= terrain_h {
let band = scene_color(scene, terrain_h); let band = surface_color(scene, terrain_h, nx, nz);
let distance_fade = (t / max_dist).clamp(0.0, 1.0); let distance_fade = (t / max_dist).clamp(0.0, 1.0);
let fade = distance_fade * haze_strength; let fade = distance_fade * haze_strength;
hit_color = Some(mix_color(band, sky, fade)); hit_color = Some(mix_color(band, sky, fade));