mirror of
https://github.com/IllusionMan1212/3dobs.git
synced 2026-10-24 10:12:35 +00:00
WIP: normal maps
This commit is contained in:
+10
-2
@@ -31,7 +31,9 @@ pub struct State {
|
||||
pub logger: logger::WritableLog,
|
||||
pub settings: Settings,
|
||||
pub fps: f32,
|
||||
pub show_textures: bool
|
||||
pub show_textures: bool,
|
||||
pub show_normal: bool,
|
||||
pub show_emission: bool,
|
||||
}
|
||||
|
||||
impl Default for State {
|
||||
@@ -56,7 +58,9 @@ impl Default for State {
|
||||
logger: logger::WritableLog::default(),
|
||||
settings: Settings::default(),
|
||||
fps: 0.0,
|
||||
show_textures: true
|
||||
show_textures: true,
|
||||
show_normal: true,
|
||||
show_emission: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -491,6 +495,10 @@ fn draw_viewport(ui: &imgui::Ui, state: &mut State, texture: u32) {
|
||||
ui.same_line();
|
||||
ui.checkbox("Show Textures", &mut state.show_textures);
|
||||
ui.same_line();
|
||||
ui.checkbox("Use Normal", &mut state.show_normal);
|
||||
ui.same_line();
|
||||
ui.checkbox("Use Emissive", &mut state.show_emission);
|
||||
ui.same_line();
|
||||
ui.set_next_item_width(150.0);
|
||||
imgui::Drag::new("Camera Speed")
|
||||
.range(1.0, 10000.0)
|
||||
|
||||
Reference in New Issue
Block a user