| 87 | } |
| 88 | |
| 89 | void HelloDXR::onGuiRender(Gui* pGui) |
| 90 | { |
| 91 | Gui::Window w(pGui, "Hello DXR Settings", {300, 400}, {10, 80}); |
| 92 | |
| 93 | w.checkbox("Ray Trace", mRayTrace); |
| 94 | w.checkbox("Use Depth of Field", mUseDOF); |
| 95 | if (w.button("Load Scene")) |
| 96 | { |
| 97 | std::filesystem::path path; |
| 98 | if (openFileDialog(Scene::getFileExtensionFilters(), path)) |
| 99 | { |
| 100 | loadScene(path, getTargetFbo().get()); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | mpScene->renderUI(w); |
| 105 | } |
| 106 | |
| 107 | bool HelloDXR::onKeyEvent(const KeyboardEvent& keyEvent) |
| 108 | { |
nothing calls this directly
no test coverage detected