hosek skybox moved outside of basegame; moonlight impl

This commit is contained in:
minjaesong
2023-08-04 13:43:14 +09:00
parent 9fe6618cc9
commit 18631064d4
10 changed files with 43 additions and 55 deletions

View File

@@ -119,7 +119,7 @@ class WorldTime(initTime: Long = 0L) {
}
inline val moonPhase: Double
get() = (TIME_T.plus(1700000L) % LUNAR_CYCLE).toDouble() / LUNAR_CYCLE
get() = (TIME_T.plus(700000L) % LUNAR_CYCLE).toDouble() / LUNAR_CYCLE
fun getSolarElevationAt(ordinalDay: Int, second: Int): Double {
val TIME_T = DAY_LENGTH * ordinalDay + second