From 7ec118789900f1567591e6522b32f5bb28831084 Mon Sep 17 00:00:00 2001 From: hal8174 Date: Tue, 14 Jan 2025 16:39:57 +0100 Subject: [PATCH] Add MIS to egui --- ray-tracing-egui/src/render.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ray-tracing-egui/src/render.rs b/ray-tracing-egui/src/render.rs index f6a685a..cdc006a 100644 --- a/ray-tracing-egui/src/render.rs +++ b/ray-tracing-egui/src/render.rs @@ -8,7 +8,7 @@ use ray_tracing_core::{ camera::BasicCamera, prelude::*, renderer::ClassicalRenderer, scene::Scene, }; use ray_tracing_renderer::{ - depth_renderer::DepthRenderer, next_event_estimation::NextEventEstimation, + depth_renderer::DepthRenderer, mis::MIS, next_event_estimation::NextEventEstimation, path_tracer::PathTracer, path_tracer_importance::PathTracerImportance, }; use ray_tracing_scene::examples; @@ -23,7 +23,7 @@ use vulkano::{ type DynRenderer = dyn ClassicalRenderer + Sync>, BasicCamera> + Sync; -pub const RENDERER: [(&str, fn(u32, u32) -> Box); 4] = [ +pub const RENDERER: [(&str, fn(u32, u32) -> Box); 5] = [ ("Depth", |w, h| { Box::new(DepthRenderer::new(w, h)) as Box }), @@ -36,6 +36,7 @@ pub const RENDERER: [(&str, fn(u32, u32) -> Box); 4] = [ ("Next event estimation", |w, h| { Box::new(NextEventEstimation::new(w, h)) as Box }), + ("MIS", |w, h| Box::new(MIS::new(w, h)) as Box), ]; #[derive(Debug, Clone)]