summaryrefslogtreecommitdiff
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 127a785..b5508e2 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -10,6 +10,7 @@ use crate::{
camera::Camera,
config::{CELLS_IN_CHUNK, CHUNK_SIZE},
content::{materials::MaterialId, vfx::VfxMaterialId},
+ proc_gen::WorldGenerator,
renderer::ui::draw_egui,
sim::{
cell_manager::manager::CellManager, entity::EntityId,
@@ -772,6 +773,7 @@ impl RendererState {
config: &mut Config,
diagnostics: &Diagnostics,
input_manager: &InputManager,
+ world_generator: &mut WorldGenerator,
) {
puffin::profile_function!();
@@ -819,7 +821,15 @@ impl RendererState {
.resizable(false)
// TODO collapse button
.show_collapsible(ui, &mut true, |panel_ui| {
- draw_egui(panel_ui, config, camera, diagnostics, input_manager, sim)
+ draw_egui(
+ panel_ui,
+ config,
+ camera,
+ diagnostics,
+ input_manager,
+ sim,
+ world_generator,
+ )
});
});