Very very close to pixel perfect shadows. Having some of that axis switch malarchy slowing things down
This commit is contained in:
@@ -61,6 +61,7 @@ public:
|
||||
void draw(sf::RenderWindow* window) override;
|
||||
|
||||
|
||||
int debug_quick_recompile();
|
||||
void test_edit_viewport(int width, int height, float v_fov, float h_fov);
|
||||
private:
|
||||
|
||||
|
||||
@@ -158,6 +158,10 @@ inline float AngleBetweenVectors(sf::Vector3f a, sf::Vector3f b){
|
||||
return acos(DotProduct(a, b) / (Magnitude(a) * Magnitude(b)));
|
||||
}
|
||||
|
||||
inline float DistanceBetweenPoints(sf::Vector3f a, sf::Vector3f b) {
|
||||
return sqrt(DotProduct(a, b));
|
||||
}
|
||||
|
||||
inline float DegreesToRadians(float in) {
|
||||
return static_cast<float>(in * PI / 180.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user