Changed picture, made console togglable (which drastically (doubled) improves framerate
This commit is contained in:
parent
bc865c969d
commit
479722185f
@ -120,16 +120,11 @@ 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);
|
||||
|
||||
if(ren->in_menu)
|
||||
console->Draw();
|
||||
|
||||
ImGui::End();
|
||||
|
||||
@ -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);
|
||||
}
|
||||
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