From 3504d878f8f5e218e53075e20086cf9ce3e77e08 Mon Sep 17 00:00:00 2001 From: karl Date: Tue, 12 Jan 2021 18:42:55 +0100 Subject: [PATCH] Improve visuals for kdtree rendering Also remove the animations - these don't make sense with a static kdtree --- ECS/Components/Lines.h | 6 +++--- main.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ECS/Components/Lines.h b/ECS/Components/Lines.h index 716624b..95c7dff 100644 --- a/ECS/Components/Lines.h +++ b/ECS/Components/Lines.h @@ -28,10 +28,10 @@ struct Lines { } void render() const { - // glEnable(GL_LINE_SMOOTH); - // glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); + glEnable(GL_LINE_SMOOTH); + glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); glBindVertexArray(lineVAO); - glLineWidth(3.3f); + glLineWidth(1.0f); glDrawArrays(GL_LINES, 0, vertex_count); glLineWidth(1.0f); } diff --git a/main.cpp b/main.cpp index 073d802..51563a0 100644 --- a/main.cpp +++ b/main.cpp @@ -222,10 +222,10 @@ int main(int argc, char **argv) { world->tick(delta); renderSystem->render(world, defaultShader, shadowShader, debugShader, lineShader); - ring->get()->rotate(delta * 100.0, glm::vec3(0.0, 1.0, 0.0)); - sun->get()->direction = glm::normalize(glm::vec3( - glm::rotate(glm::mat4(1), (float)elapsed_time * 0.5f, glm::vec3(0.0, 1.0, 0.0)) * - glm::vec4(1.0, 1.0, 1.0, 0.0))); + /* ring->get()->rotate(delta * 100.0, glm::vec3(0.0, 1.0, 0.0)); + sun->get()->direction = glm::normalize(glm::vec3( + glm::rotate(glm::mat4(1), (float)elapsed_time * 0.5f, glm::vec3(0.0, 1.0, 0.0)) + * glm::vec4(1.0, 1.0, 1.0, 0.0))); */ /* Swap front and back buffers */ glfwSwapBuffers(window);