Commit Graph

12 Commits (74967c11b637563d6ca702fffc21a0050d700efe)

Author SHA1 Message Date
Brett d4a9d729a0 Fixed issues with textures. Now completely working.
Also fixed bug with segfaulting on exit
2022-11-21 13:39:01 -05:00
Brett 5308cacd23 Added the ability to recusively load shader files
include statements are the only form of file chaining supported.
define statements can now be replaced at load time with global variable.
2022-11-20 13:07:45 -05:00
Brett 7aea5ee8c4 BVH performance results in ods file 2022-11-16 17:34:17 -05:00
Brett e72fc15007 BVH now has a source file. 2022-11-16 16:15:08 -05:00
Brett d7ef170256 BVH works now?
AABB intersect equation was wrong. That's been fixed
Intersection algorithm has been overhauled.
TODO: Code review and cleanup
2022-11-15 20:08:31 -05:00
Brett c881b780ff Raytracer and Debug views now align 2022-11-15 16:23:37 -05:00
Brett 4c9e4b6787 Fixed BVH infinite recursion 2022-11-15 11:45:50 -05:00
Brett 17c7942405 Fixed AABB Sizing issue.
Fixed is a strong word. TODO: I have solved the problem by using isEmpty to tell when it's a fresh AABB
and just returing the passed AABB as the new expanded AABB. This feels lazy and I expect it'll cause issues in the future.
Plus it isn't truely correct and the context which uses it could just use the first obj AABB since there is only 1 object
2022-11-15 00:53:21 -05:00
Brett a28d49b132 Raytracing camera now losely follows the debug camera
Differences in Viewport size change how the scene is rendered but the position and rotation of the camera is close enough.
2022-11-14 20:44:49 -05:00
Brett 98e0efe28e BVH Debug Working + Input Bug Fix
Bounding Boxes are now drawn in debug mode. Some debugging is required as the box is slightly offset.
GLFW_REPEAT no longer causes keyReleased event.
2022-11-13 14:13:14 -05:00
Brett 7a09800c40 BVH Cleanup / Changes.
Working on fixing issues with the BVH implementation.
Commiting a working changes version. Code has been cleaned up considerably.
A proper code review is nessacary in the near future.
2022-11-13 13:03:48 -05:00
Brett 579511811e Working on mutlithreading, push fix for cmake 2022-10-23 23:46:12 -04:00