feat: rebuild the nightdrive road and terrain

This commit is contained in:
2026-09-02 14:30:03 +03:00
parent f2dd3f85dd
commit 3c932cb840
7 changed files with 694 additions and 74 deletions

View File

@@ -155,9 +155,33 @@ describe('scene render quality', () => {
const medium = renderQualityFor('medium', 3, false);
const low = renderQualityFor('low', 3, false);
expect(high).toEqual({ pixelRatio: 1.5, terrainSegments: 96, particleCount: 384, postEffects: true });
expect(medium).toEqual({ pixelRatio: 1.5, terrainSegments: 64, particleCount: 192, postEffects: true });
expect(low).toEqual({ pixelRatio: 1.25, terrainSegments: 32, particleCount: 64, postEffects: false });
expect(high).toEqual({
pixelRatio: 1.5,
roadSegments: 192,
terrainSegments: 96,
terrainOctaves: 3,
particleCount: 384,
streakCount: 48,
postEffects: true,
});
expect(medium).toEqual({
pixelRatio: 1.5,
roadSegments: 144,
terrainSegments: 64,
terrainOctaves: 2,
particleCount: 192,
streakCount: 28,
postEffects: true,
});
expect(low).toEqual({
pixelRatio: 1.25,
roadSegments: 96,
terrainSegments: 32,
terrainOctaves: 1,
particleCount: 64,
streakCount: 12,
postEffects: false,
});
});
it('caps mobile and tablet pixel ratio at 1.5 even for High', () => {