diff --git a/src/net/torvald/terrarum/worlddrawer/LightmapRendererNew.kt b/src/net/torvald/terrarum/worlddrawer/LightmapRendererNew.kt index 199a42801..1006e5481 100644 --- a/src/net/torvald/terrarum/worlddrawer/LightmapRendererNew.kt +++ b/src/net/torvald/terrarum/worlddrawer/LightmapRendererNew.kt @@ -314,7 +314,61 @@ object LightmapRenderer { AppLoader.measureDebugTime("Renderer.LightTotal") { - r3();r4();r1();r2(); + r3();r4();r1();r2();r3(); + val for_x_middle = (for_x_start + for_x_end) / 2 + //val for_y_middle = (for_y_start + for_y_end) / 2 + + + // Round 1 + /*for (y in for_y_start - overscan_open..for_y_end) { + for (x in for_x_start - overscan_open..for_x_middle) { + calculateAndAssign(lightmap, x, y) + } + } + // Round 2 + for (y in for_y_end + overscan_open downTo for_y_start) { + for (x in for_x_start - overscan_open..for_x_middle) { + calculateAndAssign(lightmap, x, y) + } + } + // Round 3 + for (y in for_y_end + overscan_open downTo for_y_start) { + for (x in for_x_middle + overscan_open downTo for_x_start) { // for_x_middle + overscan_open + calculateAndAssign(lightmap, x, y) + } + } + // Round 4 + for (y in for_y_start - overscan_open..for_y_end) { + for (x in for_x_middle + overscan_open downTo for_x_start) { // for_x_middle + overscan_open + calculateAndAssign(lightmap, x, y) + } + } + + + // Round 3 + for (y in for_y_end + overscan_open downTo for_y_start) { + for (x in for_x_end + overscan_open downTo for_x_middle) { + calculateAndAssign(lightmap, x, y) + } + } + // Round 4 + for (y in for_y_start - overscan_open..for_y_end) { + for (x in for_x_end + overscan_open downTo for_x_middle) { + calculateAndAssign(lightmap, x, y) + } + } + // Round 1 + for (y in for_y_start - overscan_open..for_y_end) { + for (x in for_x_middle - overscan_open..for_x_end) { // for_x_middle - overscan_open + calculateAndAssign(lightmap, x, y) + } + } + // Round 2 + for (y in for_y_end + overscan_open downTo for_y_start) { + for (x in for_x_middle - overscan_open..for_x_end) { // for_x_middle - overscan_open + calculateAndAssign(lightmap, x, y) + } + }*/ // ANECDOTES diff --git a/work_files/spreadeverycell_overlapping_investigation.kra b/work_files/spreadeverycell_overlapping_investigation.kra index 2c71d04e4..46ba9ce38 100644 Binary files a/work_files/spreadeverycell_overlapping_investigation.kra and b/work_files/spreadeverycell_overlapping_investigation.kra differ