Skip to content

Commit

Permalink
Thicken rail lines, adjust near/far
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMKW committed Nov 18, 2023
1 parent e52863a commit b46ea54
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
10 changes: 5 additions & 5 deletions include/gui/modelcache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#include <string>

#include <J3D/J3DModelLoader.hpp>
#include <J3D/J3DModelData.hpp>
#include <J3D/J3DUniformBufferObject.hpp>
#include <J3D/J3DLight.hpp>
#include <J3D/J3DModelInstance.hpp>
#include <J3D/J3DRendering.hpp>
#include <J3D/Data/J3DModelData.hpp>
#include <J3D/Material/J3DUniformBufferObject.hpp>
#include <J3D/Rendering/J3DLight.hpp>
#include <J3D/Data/J3DModelInstance.hpp>
#include <J3D/Rendering/J3DRendering.hpp>

extern std::map<std::string, std::shared_ptr<J3DModelData>> ModelCache;
4 changes: 2 additions & 2 deletions include/objlib/object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "transform.hpp"
#include "types.hpp"
#include <J3D/Animation/J3DAnimationInstance.hpp>
#include <J3D/J3DLight.hpp>
#include <J3D/J3DModelInstance.hpp>
#include <J3D/Rendering/J3DLight.hpp>
#include <J3D/Data/J3DModelInstance.hpp>
#include <expected>
#include <filesystem>
#include <stacktrace>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "gui/themes.hpp"
#include "gui/util.hpp"

#include <J3D/J3DUniformBufferObject.hpp>
#include <J3D/Material/J3DUniformBufferObject.hpp>

#include <iostream>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/scene/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace Toolbox::UI {

glEnable(GL_PROGRAM_POINT_SIZE);

glLineWidth(2.0f);
glLineWidth(5.0f);

glm::mat4 mvp = camera->getProjMatrix() * camera->getViewMatrix() * glm::mat4(1.0);

Expand Down
6 changes: 4 additions & 2 deletions src/gui/scene/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#endif
#include <gui/context_menu.hpp>

#include <J3D/Material/J3DUniformBufferObject.hpp>

namespace Toolbox::UI {

void PacketSort(J3DRendering::SortFunctionArgs packets) {
Expand Down Expand Up @@ -92,7 +94,7 @@ namespace Toolbox::UI {
}

SceneWindow::SceneWindow() : DockWindow() {
m_camera.setPerspective(150, 16 / 9, 100, 300000);
m_camera.setPerspective(150, 16 / 9, 100, 250000);
m_camera.setOrientAndPosition({0, 1, 0}, {0, 0, 1}, {0, 0, 0});
m_camera.updateCamera();
J3DRendering::SetSortFunction(PacketSort);
Expand Down Expand Up @@ -552,7 +554,7 @@ namespace Toolbox::UI {
projection = m_camera.getProjMatrix();
view = m_camera.getViewMatrix();

J3DUniformBufferObject::SetProjAndViewMatrices(&projection, &view);
J3DUniformBufferObject::SetProjAndViewMatrices(projection, view);

glm::vec3 position;
m_camera.getPos(position);
Expand Down

0 comments on commit b46ea54

Please sign in to comment.