Skip to content

Commit

Permalink
UI-ImGUI: change sphere-renderer LOD
Browse files Browse the repository at this point in the history
The default is now 3 and the maximum is 5. This seems a reasonable range
where a value of 3 is already visually fine in most cases.
  • Loading branch information
GPMueller committed Nov 6, 2021
1 parent 832a00d commit 1e6c09e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui-cpp/ui-imgui/include/renderer_widget.hpp
Expand Up @@ -192,7 +192,7 @@ struct SphereRendererWidget : RendererWidget, ColormapWidget
void apply_settings() override;

float size = 0.1f;
int lod = 10;
int lod = 3;

protected:
std::string name() const override
Expand Down
4 changes: 2 additions & 2 deletions ui-cpp/ui-imgui/src/renderer_widget.cpp
Expand Up @@ -1024,7 +1024,7 @@ void SphereRendererWidget::reset()
this->reset_colormap();

this->size = 0.1f;
this->lod = 10;
this->lod = 3;

this->apply_settings();
}
Expand All @@ -1038,7 +1038,7 @@ void SphereRendererWidget::show_settings()
}

ImGui::SetNextItemWidth( 100 );
if( ImGui::SliderInt( "level of detail", &lod, 10, 100 ) )
if( ImGui::SliderInt( "level of detail", &lod, 1, 5 ) )
this->set_renderer_option<VFRendering::SphereRenderer::Option::LEVEL_OF_DETAIL>( lod );

ImGui::Dummy( { 0, 10 } );
Expand Down

0 comments on commit 1e6c09e

Please sign in to comment.