feat(render): fade railroad overlay near min zoom

Replace the hard zoom cutoff in RailroadPass with a linear alpha fade
controlled by a new `railFadeRange` setting. Rails (and bridge pixels)
ramp from invisible at `railMinZoom - railFadeRange` to fully opaque at
`railMinZoom`, instead of popping in. Adds a uRailFade shader uniform
and a debug slider.
This commit is contained in:
evanpelle
2026-05-27 15:42:11 -07:00
parent aa3959bffe
commit 23fbc3114a
5 changed files with 29 additions and 6 deletions
+1
View File
@@ -81,6 +81,7 @@ export interface RenderSettings {
};
railroad: {
railMinZoom: number;
railFadeRange: number;
railDetailZoom: number;
railAlpha: number;
};