Commit Graph

2 Commits

Author SHA1 Message Date
Joseph Aquino a3672012f6 Major code rewrite.
-class Light added to handle the construction of the triangle fan
-light can now be bounded between two bounderies
-differnt sections of main have been placed into different functions for readability
-imgui variables were made inline and moved to Utility.hpp for convenience
-the claculation of intersections for rays hav been moved to Ray::calculateIntersect
-variables containing std::vector<Ray>, class Light, and std::vector<sf::VertexArray> were moved outsid of main() for convenience
2025-04-11 13:58:45 -04:00
Joseph Aquino 637dc7e821 major code rewrite.
-rays are now handled inside class Ray
-constructRay function removed as the functionality is replaced by Ray's constructor
- added an unnamed enum to make indexing Ray::m_points more clear
- Ray::angle is used to keep track of the angle to +x, is updated when any point in Ray::m_points is updated
- Helper.hpp has been renamed to Utility.hpp
-all functions that were above main() are now in Utility.hpp
-rays now behave like a light source
-rays get sorted by angle and get placed into a TriangleFan which is drawn as the light source
-added additional options to the imgui menu
2025-04-10 12:53:51 -04:00