Fix day cycle
This commit is contained in:
fraxle
2026-06-07 16:28:10 +01:00
parent 80dc28a13e
commit 10452115d7
3 changed files with 15 additions and 8 deletions
+2 -2
View File
@@ -616,7 +616,7 @@ export function ScopeReticle({ value, cat, loading, elev = 0, dt = new Date(), g
c = blendHex(c, greyTarget, tintAmt * 0.3); // weather grey
return c;
}
const snowTone = blendHex(skyBotTint, '#ffffff', 0.6); // snow caps (dim at night)
const snowTone = blendHex(skyBotTint, '#ffffff', isDay ? 0.6 : isTwil ? 0.38 : 0.20);
// Readout scrim colour: light by day (dark text), dark by night (light text).
const scrimColor = isDay ? '#f1e8d0' : '#0b0916';
@@ -693,7 +693,7 @@ export function ScopeReticle({ value, cat, loading, elev = 0, dt = new Date(), g
// Alpine: a distant range of irregular, jagged peaks (not pyramids) —
// off-centre summits with sub-shoulders, hazier the further back.
if (spec.obj.mountains) {
const capTone = blendHex(skyBotTint, '#ffffff', 0.72); // snow, cycle-lit
const capTone = blendHex(skyBotTint, '#ffffff', isDay ? 0.72 : isTwil ? 0.46 : 0.24);
const mtn = (x, w, h, seed, d) => {
const r = seededRng(seed);
const tone = objTone('#6a6258', d); // rocky; far = hazier