diff --git a/UI/UI.cpp b/UI/UI.cpp index 2a2e861..0f03334 100644 --- a/UI/UI.cpp +++ b/UI/UI.cpp @@ -120,17 +120,12 @@ void UI::newFrame() { ImGui::SetNextWindowBgAlpha(0.5f); ImGui::Begin("Rendering Info", nullptr); - ImGui::Text("# of Indices: %zu", ren->n_indices); ImGui::Text("FPS: %f", ren->fps); ImGui::Text("Time: %f", ren->time); - ImGui::Checkbox("Fly Camera", &ren->flycam); - ImGui::SliderFloat("Near Plane", &ren->near_plane, 0.00, 0.20); - ImGui::SliderFloat("Far Plane", &ren->far_plane, 1000.0, 10000.0); - ImGui::SliderFloat("Tessellation Factor", &ren->tess_factor, 0.1, 10.0); - ImGui::SliderFloat("Edge Size", &ren->tess_edge_size, 0.0, 40.0); - console->Draw(); + if(ren->in_menu) + console->Draw(); ImGui::End(); } @@ -147,4 +142,4 @@ UI::~UI() { ImGui_ImplVulkan_Shutdown(); ImGui_ImplGlfw_Shutdown(); ImGui::DestroyContext(); -} \ No newline at end of file +} diff --git a/assets/shaders/bsp.vert b/assets/shaders/bsp.vert index 0180762..f535226 100644 --- a/assets/shaders/bsp.vert +++ b/assets/shaders/bsp.vert @@ -36,5 +36,6 @@ void main() { gl_Position = proj * view * vec4(aPos, 1.0); texCoord = aTexCoord; norm = aNorm; +// color = vec4(length(unpackABGR(aColor).xyz)); color = unpackABGR(aColor); -} \ No newline at end of file +} diff --git a/bsp_capture.png b/bsp_capture.png index 2a773e8..14252e7 100644 Binary files a/bsp_capture.png and b/bsp_capture.png differ