Refactor some of the code.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "Geometry/Triangle.h"
|
||||
#include "cglm/struct/vec3.h"
|
||||
|
||||
// TODO: We still have small amount of block dots in current implementation. It's because of floating point precision. May need to fall back to double or handle it in a different way.
|
||||
hit_result_t ray_intersect_triangle(ray_t ray, triangle_t triangle)
|
||||
{
|
||||
hit_result_t result = {0};
|
||||
|
||||
Reference in New Issue
Block a user