feat: layer the nightdrive sky and atmosphere

This commit is contained in:
2026-09-02 14:52:03 +03:00
parent 3c932cb840
commit 5c52de9134
15 changed files with 801 additions and 168 deletions

View File

@@ -5,8 +5,9 @@ export interface RenderQualitySettings {
roadSegments: number;
terrainSegments: number;
terrainOctaves: 1 | 2 | 3;
particleCount: number;
starCount: number;
streakCount: number;
postScale: number;
postEffects: boolean;
}
@@ -16,8 +17,9 @@ const settings: Readonly<Record<LiveQualityTier, Omit<RenderQualitySettings, 'pi
roadSegments: 192,
terrainSegments: 96,
terrainOctaves: 3,
particleCount: 384,
starCount: 384,
streakCount: 48,
postScale: 1,
postEffects: true,
},
medium: {
@@ -25,8 +27,9 @@ const settings: Readonly<Record<LiveQualityTier, Omit<RenderQualitySettings, 'pi
roadSegments: 144,
terrainSegments: 64,
terrainOctaves: 2,
particleCount: 192,
starCount: 192,
streakCount: 28,
postScale: 0.7,
postEffects: true,
},
low: {
@@ -34,8 +37,9 @@ const settings: Readonly<Record<LiveQualityTier, Omit<RenderQualitySettings, 'pi
roadSegments: 96,
terrainSegments: 32,
terrainOctaves: 1,
particleCount: 64,
starCount: 64,
streakCount: 12,
postScale: 0,
postEffects: false,
},
};
@@ -52,8 +56,9 @@ export function renderQualityFor(
roadSegments: selected.roadSegments,
terrainSegments: selected.terrainSegments,
terrainOctaves: selected.terrainOctaves,
particleCount: selected.particleCount,
starCount: selected.starCount,
streakCount: selected.streakCount,
postScale: selected.postScale,
postEffects: selected.postEffects,
};
}