mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
hosek skybox moved outside of basegame; moonlight impl
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user