From 28a110138265850a36f21e7e04473846a07d57e8 Mon Sep 17 00:00:00 2001 From: vini Date: Sun, 19 Jul 2026 13:40:53 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20balanceia=20exposi=C3=A7=C3=A3o=20da=20g?= =?UTF-8?q?al=C3=A1xia=20e=20estrelas=20fracas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/contents/ui/dancer.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/contents/ui/dancer.html b/plugin/contents/ui/dancer.html index 82d58ae..84c108d 100644 --- a/plugin/contents/ui/dancer.html +++ b/plugin/contents/ui/dancer.html @@ -1276,7 +1276,7 @@ const E2G = [ para plate carrée por tools/build_skymap.py. A geometria é real; apenas exposição, contraste e saturação são estilizados para o wallpaper. */ const MW_BLACK = 46; -const MW_EXPOSURE = 1.08; +const MW_EXPOSURE = 0.96; const MW_SAMPLE_SCALE = 1; const mwTex = { data: null, w: 0, h: 0 }; const mwCanvas = document.createElement('canvas'); @@ -1422,10 +1422,10 @@ function projectSky() { bctx.imageSmoothingQuality = 'high'; bctx.save(); bctx.globalCompositeOperation = 'lighter'; - bctx.globalAlpha = 0.20; + bctx.globalAlpha = 0.17; bctx.filter = `blur(${Math.max(7, H * 0.009)}px) saturate(150%)`; bctx.drawImage(mwCanvas, 0, 0, W, horizonPx); - bctx.globalAlpha = 0.92; + bctx.globalAlpha = 0.88; bctx.filter = 'contrast(116%) saturate(158%)'; bctx.drawImage(mwCanvas, 0, 0, W, horizonPx); bctx.restore(); @@ -1436,10 +1436,10 @@ function projectSky() { const aa = altAz(ra, dec, lst); const sc = skyToScreen(aa.alt, aa.az, W, horizonPx); if (!sc) continue; - const a = Math.max(0.25, Math.min(1, 1.15 - 0.15 * mag)) * + const a = Math.max(0.33, Math.min(1, 1.15 - 0.15 * mag)) * extinction(aa.alt) * glareFactor(sc.x, sc.y, W, H, glareOn); if (a < 0.01) continue; - const r = Math.max(0.35, 2.7 - 0.42 * mag); + const r = Math.max(0.45, 2.7 - 0.42 * mag); const c = STAR_PALETTE[ci]; if (mag <= TWINKLE_MAG) { /* fase/freq determinísticas por índice — cintilação estável */