diff --git a/src/render/render.cpp b/src/render/render.cpp index 311320e..8b35f46 100644 --- a/src/render/render.cpp +++ b/src/render/render.cpp @@ -1634,6 +1634,7 @@ void VulkanExample::OnUpdateUIOverlay(vks::UIOverlay *overlay) { + GUIFunction guiFunc{}; if (overlay->header("Settings")) { if (overlay->checkBox("Wireframe", &wireframe)) { buildCommandBuffers(); @@ -1659,11 +1660,21 @@ { if (overlay->button("select model")) { - GUIFunction guiFunc{}; + std::string strModelFilePath; strModelFilePath = guiFunc.openFileFolderDialog(); filePath.glTFModelFilePath = strModelFilePath; loadAssets(); + + } + if(overlay->button("select vertexShader")) + { + + std::string strFilePath; + strFilePath = guiFunc.openFileFolderDialog(); + filePath.glTFModelFilePath = strFilePath; + loadAssets(); + } } }