diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-22 02:13:00 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-22 02:13:00 +0800 |
| commit | 5a908a17335ff291e2d8f2fb3a1ff0ab57770c80 (patch) | |
| tree | a01b4131d6470d99a03ebfa45e5a6d6456cb20af /src/LivingVillage.Desktop.Tests/DesktopTests.fs | |
| parent | 37953a4b58dfc5f3b8aedf10ad6f1474c2960767 (diff) | |
| download | living-village-p19-daylight-taming.tar.gz | |
fix(desktop): P19 白天色调去偏黄(day tint 中性白平衡,黄昏暖橙保留)p19-daylight-taming
Diffstat (limited to 'src/LivingVillage.Desktop.Tests/DesktopTests.fs')
| -rw-r--r-- | src/LivingVillage.Desktop.Tests/DesktopTests.fs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/LivingVillage.Desktop.Tests/DesktopTests.fs b/src/LivingVillage.Desktop.Tests/DesktopTests.fs index 00e445b..b78f4e0 100644 --- a/src/LivingVillage.Desktop.Tests/DesktopTests.fs +++ b/src/LivingVillage.Desktop.Tests/DesktopTests.fs @@ -143,6 +143,23 @@ type DesktopTests () = Assert.IsTrue(day.WorldTint.G > day.WorldTint.B) [<TestMethod>] + member _.NoonLightingIsWarmthFreeWithNeutralWhiteBalance () = + let noonTick = 12L * Sim.ticksPerDay / 24L + let noon = M6Presentation.profileAtTick noonTick + + Assert.AreEqual<M6DayNight>(Day, noon.Mode) + Assert.AreEqual<float32>(0.0f, noon.SkyWarmth) + Assert.AreEqual<float32>(0.0f, noon.LanternGlow) + Assert.AreEqual<int>(0, M6Presentation.goldenVeilAlpha noonTick) + // P19 offender was the day world tint attenuating blue (255/248/224); it is neutral now. + Assert.AreEqual<int>(255, int noon.WorldTint.R) + Assert.AreEqual<int>(int noon.WorldTint.R, int noon.WorldTint.G) + Assert.AreEqual<int>(int noon.WorldTint.G, int noon.WorldTint.B) + // The sky stays a plain blue, never warm. + Assert.IsTrue(noon.Background.B > noon.Background.G) + Assert.IsTrue(noon.Background.B > noon.Background.R) + + [<TestMethod>] member _.DaylightAutoplayBootstrapStartsAtDawnAndPreservesDefaultStart () = let dawnTick = 6L * Sim.ticksPerDay / 24L let daylightWorld = WorldBootstrap.initialWorldForDaylight true 42UL Sim.npcCount |
