1.9.3.3
Moon image texture and fix
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
+26
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -294,7 +294,7 @@ export function confidenceBand(i) {
|
|||||||
export function moonPhaseFraction(date) {
|
export function moonPhaseFraction(date) {
|
||||||
const JD = date.getTime() / 86400000 + 2440587.5;
|
const JD = date.getTime() / 86400000 + 2440587.5;
|
||||||
const syn = 29.530588;
|
const syn = 29.530588;
|
||||||
const ref = 2451560.2054;
|
const ref = 2451549.2303;
|
||||||
let p = ((JD - ref) % syn) / syn;
|
let p = ((JD - ref) % syn) / syn;
|
||||||
if (p < 0) p += 1;
|
if (p < 0) p += 1;
|
||||||
return p;
|
return p;
|
||||||
|
|||||||
Reference in New Issue
Block a user