Moon image texture and fix
This commit is contained in:
fraxle
2026-05-27 15:36:53 +01:00
parent 6952f0e1c0
commit bd99d92a54
3 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ export function confidenceBand(i) {
export function moonPhaseFraction(date) {
const JD = date.getTime() / 86400000 + 2440587.5;
const syn = 29.530588;
const ref = 2451560.2054;
const ref = 2451549.2303;
let p = ((JD - ref) % syn) / syn;
if (p < 0) p += 1;
return p;