From cba6c550c74c64695e258b406a3e60ecbafd1bb4 Mon Sep 17 00:00:00 2001 From: ternaryop8479 Date: Sat, 11 Apr 2026 00:30:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0examples/cornell=5Fbox?= =?UTF-8?q?.cpp=E4=BB=A5=E5=85=BC=E5=AE=B9=E6=96=B0config=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/cornell_box.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/cornell_box.cpp b/examples/cornell_box.cpp index a842045..465f4c3 100644 --- a/examples/cornell_box.cpp +++ b/examples/cornell_box.cpp @@ -547,12 +547,12 @@ int main() { ARE_LOG_INFO("Initializing renderer..."); RendererConfig config; - config.width_ = WINDOW_WIDTH; - config.height_ = WINDOW_HEIGHT; - config.samples_per_pixel_ = 1; - config.max_ray_depth_ = 4; - config.enable_accumulation_ = true; - config.enable_denoising_ = false; + config.output_width = WINDOW_WIDTH; + config.output_height = WINDOW_HEIGHT; + config.rt_config.samples_per_pixel = 1; + config.rt_config.max_depth = 4; + config.rt_config.enable_accumulation = true; + config.enable_denoising = false; g_renderer = std::make_unique(config); if (!g_renderer->initialize()) {