new config for light update pass count

This commit is contained in:
minjaesong
2023-10-28 23:57:40 +09:00
parent acae5dab8b
commit 33e93b8e10
5 changed files with 15 additions and 0 deletions

View File

@@ -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>) {