Skip to content

Commit

Permalink
better fov and position values
Browse files Browse the repository at this point in the history
  • Loading branch information
SArpnt committed Feb 17, 2021
1 parent 42e4d81 commit 86b5265
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engine/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int main(int argc, char* argv[]) {

ce::Window* window = new ce::Window("Cinnabar");
ce::RenderingEngine* renderingEngine = new ce::RenderingEngine();
renderingEngine->setFOV(45.0f);
renderingEngine->setFOV(75.0f);
renderingEngine->setSize(window->getWindowSize());


Expand All @@ -87,13 +87,13 @@ int main(int argc, char* argv[]) {
mesh->sendToShader(material->getShader());

glm::mat4 proj = glm::perspective(
glm::radians(45.0f), window->getAspectRatio(), 0.1f, 100.0f);
glm::radians(75.0f), window->getAspectRatio(), 0.1f, 100.0f);

float mouseSensitivity = 0.1f;
ce::Camera* camera = new ce::Camera();
// Seperate so i can put in a player class later
glm::vec3 cameraVelocity(0.0f);
camera->getTransform()->setPosition(0.0f, 0.0f, 3.0f);
camera->getTransform()->setPosition(0.0f, 0.0f, 1.5f);
camera->getTransform()->setYaw(-90.0f);
/*
* Game Loop
Expand Down Expand Up @@ -159,7 +159,7 @@ int main(int argc, char* argv[]) {
glm::vec2 size = window->getWindowSize();
glViewport(0, 0, size.x, size.y);
proj = glm::perspective(
glm::radians(45.0f), window->getAspectRatio(), 0.1f, 100.0f);
glm::radians(75.0f), window->getAspectRatio(), 0.1f, 100.0f);
break;
}
}
Expand Down

0 comments on commit 86b5265

Please sign in to comment.