mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 21:44:05 +09:00
new config for light update pass count
This commit is contained in:
@@ -341,6 +341,16 @@ object LightmapRenderer {
|
||||
// }
|
||||
// no rendering trickery will eliminate the need of 2nd pass, even the "decay out"
|
||||
}
|
||||
|
||||
App.getConfigInt("lightpasses").let { passcnt ->
|
||||
if (passcnt > 2) {
|
||||
for (pass in 3..passcnt) {
|
||||
App.measureDebugTime("Renderer.LightRuns$pass") {
|
||||
r1(lightmap);r2(lightmap);r3(lightmap);r4(lightmap)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun buildLanternAndShadowMap(actorContainer: List<ActorWithBody>) {
|
||||
|
||||
Reference in New Issue
Block a user