Software raycasting now works, but has some major problems / is extremely

slow. Perhaps it will only be useful in debugging the kernel via emulation
This commit is contained in:
MitchellHansen
2016-11-04 23:11:24 -07:00
parent b2988f0e13
commit 8c1f18ac70
8 changed files with 258 additions and 198 deletions

View File

@@ -10,14 +10,13 @@ const double PI = 3.141592653589793238463;
const float PI_F = 3.14159265358979f;
struct Light {
#pragma pack(1)
sf::Vector4f rgbi;
// I believe that Vector3's get padded to Vector4's. Give them a non-garbage value
sf::Vector3f position;
const float padding_1 = -1;
sf::Vector3f direction_cartesian;
const float padding_2 = -2;
};
struct fps_counter {