mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:21:16 +02:00
tweak starting fov adjust to 1.65 which seems correct
This commit is contained in:
parent
4cb986b3f9
commit
27165be902
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#include "ViewFrustum.h"
|
#include "ViewFrustum.h"
|
||||||
|
|
||||||
float ViewFrustum::fovAngleAdust=1.75;
|
float ViewFrustum::fovAngleAdust=1.65;
|
||||||
|
|
||||||
ViewFrustum::ViewFrustum(glm::vec3 position, glm::vec3 direction,
|
ViewFrustum::ViewFrustum(glm::vec3 position, glm::vec3 direction,
|
||||||
glm::vec3 up, glm::vec3 right, float screenWidth, float screenHeight) {
|
glm::vec3 up, glm::vec3 right, float screenWidth, float screenHeight) {
|
||||||
|
@ -41,8 +41,8 @@ void ViewFrustum::calculateViewFrustum(glm::vec3 position, glm::vec3 direction,
|
||||||
|
|
||||||
// Calculating field of view.
|
// Calculating field of view.
|
||||||
// 0.7854f is 45 deg
|
// 0.7854f is 45 deg
|
||||||
// ViewFrustum::fovAngleAdust defaults to 1.75
|
// ViewFrustum::fovAngleAdust defaults to 1.65
|
||||||
// Apparently our fov is around 1.75 times this value or 78.75 degrees
|
// Apparently our fov is around 1.75 times this value or 74.25 degrees
|
||||||
// you can adjust this in interface by using the "|" and "\" keys to tweak
|
// you can adjust this in interface by using the "|" and "\" keys to tweak
|
||||||
// the adjustment and see effects of different FOVs
|
// the adjustment and see effects of different FOVs
|
||||||
float fovHalfAngle = 0.7854f * ViewFrustum::fovAngleAdust;
|
float fovHalfAngle = 0.7854f * ViewFrustum::fovAngleAdust;
|
||||||
|
|
Loading…
Reference in a new issue