new WorldTime based on TIME_T

This commit is contained in:
Song Minjae
2017-04-05 02:52:00 +09:00
parent f534f08310
commit 41b236e303
10 changed files with 304 additions and 648 deletions

View File

@@ -91,7 +91,7 @@ object WeatherMixer {
)
Terrarum.ingame!!.addParticle(rainParticle)
}
globalLightNow.set(getGlobalLightOfTime(world.time.elapsedSeconds).darker(0.3f))
globalLightNow.set(getGlobalLightOfTime(world.time.todaySeconds).darker(0.3f))
}
}
@@ -105,7 +105,7 @@ object WeatherMixer {
fun render(g: Graphics) {
// we will not care for nextSkybox for now
val timeNow = Terrarum.ingame!!.world.time.elapsedSeconds
val timeNow = Terrarum.ingame!!.world.time.todaySeconds
val skyboxColourMap = currentWeather.skyboxGradColourMap
val lightColourMap = currentWeather.globalLightColourMap