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)]