1.9.3.3
Moon image texture and fix
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user