Finally converted the camera lens to a proper frustrum, no more fish eye

This commit is contained in:
2018-02-07 23:58:48 -08:00
parent cc0b078e17
commit c698711fdf
8 changed files with 59 additions and 52 deletions

View File

@@ -11,6 +11,7 @@
#include <SFML/Graphics/Texture.hpp>
#include <algorithm>
#include <tuple>
#include "Vector4.hpp"
const double PI = 3.141592653589793238463;
const float PI_F = 3.14159265358979f;
@@ -108,7 +109,6 @@ inline sf::Vector3f Normalize(sf::Vector3f in) {
return r;
}
inline float DotProduct(sf::Vector3f a, sf::Vector3f b){
return a.x * b.x + a.y * b.y + a.z * b.z;
}