Skip to content

Commit 4163c7c

Browse files
committed
Refactor monolithic VSG GUI implementation
Refactor monolithic VSG GUI implementation into focused modules: - vsg_config.h: centralized compile-time constants - vsg_materials.h/cpp: PBR material factory functions - vsg_lighting.h/cpp: multi-light studio setup - vsg_water_surface.h/cpp: animated/static water surface rendering - vsg_gui_component.h/cpp: ImGui overlay components Add runtime Viewer Settings panel (bottom-left) with controls: - Water surface visibility toggle - Grid resolution selector (32/64/96/128) - Update rate cap (10-60 Hz) - Optional status line display Settings are visualization-only (no physics changes) and take effect immediately without recompilation. Defaults match previous behavior for backward compatibility.
1 parent a100c46 commit 4163c7c

12 files changed

Lines changed: 1148 additions & 618 deletions

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,17 @@ endif()
418418
if(HYDROCHRONO_ENABLE_VSG)
419419
set(HCGUI_SOURCES ${HCGUI_SOURCES}
420420
src/gui/guihelperVSG.cpp
421+
src/gui/vsg_gui_component.cpp
422+
src/gui/vsg_lighting.cpp
423+
src/gui/vsg_materials.cpp
424+
src/gui/vsg_water_surface.cpp
425+
)
426+
set(HCGUI_HEADERS ${HCGUI_HEADERS}
427+
src/gui/vsg_config.h
428+
src/gui/vsg_gui_component.h
429+
src/gui/vsg_lighting.h
430+
src/gui/vsg_materials.h
431+
src/gui/vsg_water_surface.h
421432
)
422433
endif()
423434

0 commit comments

Comments
 (0)