mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 00:28:40 +02:00
some spacing cleanup
This commit is contained in:
parent
54ba0d0224
commit
505b2db935
1 changed files with 8 additions and 8 deletions
|
@ -28,16 +28,16 @@ void ViewFrustum::calculateViewFrustum(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) {
|
||||||
|
|
||||||
// Save the values we were passed...
|
// Save the values we were passed...
|
||||||
this->_position=position;
|
this->_position = position;
|
||||||
this->_direction=direction;
|
this->_direction = direction;
|
||||||
this->_up=up;
|
this->_up = up;
|
||||||
this->_right=right;
|
this->_right = right;
|
||||||
this->_screenWidth=screenWidth;
|
this->_screenWidth = screenWidth;
|
||||||
this->_screenHeight=screenHeight;
|
this->_screenHeight = screenHeight;
|
||||||
|
|
||||||
glm::vec3 front = direction;
|
glm::vec3 front = direction;
|
||||||
float fovHalfAngle = 0.7854f*1.5; // 45 deg for half, so fov = 90 deg
|
float fovHalfAngle = 0.7854f * 1.5; // 45 deg and some hackery. Still trying to figure out our correct fov
|
||||||
float ratio = screenWidth/screenHeight;
|
float ratio = screenWidth / screenHeight;
|
||||||
|
|
||||||
this->_nearDist = 0.1;
|
this->_nearDist = 0.1;
|
||||||
this->_farDist = 10.0;
|
this->_farDist = 10.0;
|
||||||
|
|
Loading…
Reference in a new issue