Skip to content

Commit

Permalink
zfar
Browse files Browse the repository at this point in the history
  • Loading branch information
collinalexbell committed Jan 2, 2025
1 parent 3ecdce9 commit b4c02f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
database_file: './db/matrix.db'
menu_program: 'rofi -show drun'
database_file: "./db/matrix.db"
menu_program: "rofi -show drun"
#menu_program: dmenu_run
fov: 45.0
zFar: 400.0
key_mappings:
screenshot: "p"
toggle_cursor: "f"
3 changes: 1 addition & 2 deletions src/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <memory>
#include <iostream>
#include "Config.h"

float Camera::DEFAULT_CAMERA_SPEED = 0.03f;
Expand All @@ -26,7 +25,7 @@ Camera::Camera()
lastY = 600.0 / 2.0;
viewUpdated = true;
_projectionMatrixUpdated = true;
zFar = 400.0f;
zFar = Config::singleton()->get<float>("zFar");
zNear = 0.02f;
auto yFovDegs = Config::singleton()->get<float>("fov");
yFov = glm::radians(yFovDegs);
Expand Down

0 comments on commit b4c02f5

Please sign in to comment.