From dda159f5ff347c0ffbc091c92f469749f2c043f2 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 17 Apr 2022 20:10:25 +0800 Subject: Bugfix: replacing thread scheduler caused bias_ctx being initialized with a fixed seed (from the outer of the closure, using the root seed unexpectedly), which causes the antialiasing ineffective. --- aa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aa.h b/aa.h index 769eb31..988a2f7 100644 --- a/aa.h +++ b/aa.h @@ -64,7 +64,7 @@ public: tim.start_measure(); for (typeof(samples) i = 0; i < samples; ++i) { pool.submit_task([](s_render_task &task) { - bias_ctx bc{seed}; + bias_ctx bc{task.seed}; auto image = task.shared.subs[task.task_id].render( task.shared.world, task.shared.viewpoint, task.shared.image_width, task.shared.image_height, -- cgit v1.2.3