Changed picture, made console togglable (which drastically (doubled) improves framerate
This commit is contained in:
parent
bc865c969d
commit
479722185f
11
UI/UI.cpp
11
UI/UI.cpp
@ -120,17 +120,12 @@ void UI::newFrame() {
|
|||||||
|
|
||||||
ImGui::SetNextWindowBgAlpha(0.5f);
|
ImGui::SetNextWindowBgAlpha(0.5f);
|
||||||
ImGui::Begin("Rendering Info", nullptr);
|
ImGui::Begin("Rendering Info", nullptr);
|
||||||
|
|
||||||
ImGui::Text("# of Indices: %zu", ren->n_indices);
|
ImGui::Text("# of Indices: %zu", ren->n_indices);
|
||||||
ImGui::Text("FPS: %f", ren->fps);
|
ImGui::Text("FPS: %f", ren->fps);
|
||||||
ImGui::Text("Time: %f", ren->time);
|
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();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
@ -147,4 +142,4 @@ UI::~UI() {
|
|||||||
ImGui_ImplVulkan_Shutdown();
|
ImGui_ImplVulkan_Shutdown();
|
||||||
ImGui_ImplGlfw_Shutdown();
|
ImGui_ImplGlfw_Shutdown();
|
||||||
ImGui::DestroyContext();
|
ImGui::DestroyContext();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,5 +36,6 @@ void main() {
|
|||||||
gl_Position = proj * view * vec4(aPos, 1.0);
|
gl_Position = proj * view * vec4(aPos, 1.0);
|
||||||
texCoord = aTexCoord;
|
texCoord = aTexCoord;
|
||||||
norm = aNorm;
|
norm = aNorm;
|
||||||
|
// color = vec4(length(unpackABGR(aColor).xyz));
|
||||||
color = unpackABGR(aColor);
|
color = unpackABGR(aColor);
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
bsp_capture.png
BIN
bsp_capture.png
Binary file not shown.
|
Before Width: | Height: | Size: 547 KiB After Width: | Height: | Size: 342 KiB |
Loading…
x
Reference in New Issue
Block a user