Fixed some bugs with camera etc. It almost works, however, I now know how to program a recursive raytracing algoritm. Starting on that.
now it works as intended, probably. Starting to break code away in functions. Moved triangles away and it works. Starting on spheres now.
It works. now I just have to fix refraction thingy, also look over local shading and light addition on the material