fix: balanceia exposição da galáxia e estrelas fracas
This commit is contained in:
parent
a7d301beb5
commit
28a1101382
1 changed files with 5 additions and 5 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue