A toy raytracer that started to keep me busy during the French Robotics Cup 2019, when my support was not needed.
Teo-CD
3492cfa63d
Rays are all sent from the center of the camera plane, which makes rays with a greater angle longer than if they were properly sent perpendicularly from the camera plane. Correct this by projecting the ray to the look direction (which is perpendicular to the camera plane). |
||
---|---|---|
.gitignore | ||
CMakeLists.txt | ||
Color.h | ||
LICENSE | ||
main.cpp | ||
Player.cpp | ||
Player.h | ||
World.cpp | ||
World.h |