diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-08-01 18:45:50 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-08-01 19:03:21 +0200 |
| commit | 93fa0b2e214fbb70e6c03f5ca7536c7c32544aa7 (patch) | |
| tree | d95fa69b1efb9f7d23f0ec61aee804bebe054350 /include/triangle.hpp | |
| parent | 0dafba17af044532fa2f14c61176e7994336f56c (diff) | |
Pack bvh nodes, optimize vertices size
Diffstat (limited to 'include/triangle.hpp')
| -rw-r--r-- | include/triangle.hpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/triangle.hpp b/include/triangle.hpp index f1af241..9993efe 100644 --- a/include/triangle.hpp +++ b/include/triangle.hpp @@ -1,9 +1,6 @@ #ifndef __TRIANGLE_HPP_
#define __TRIANGLE_HPP_
-#include "aabb.hpp"
-#include "material.hpp"
-
struct vertex {
vec3 position;
};
@@ -11,7 +8,7 @@ struct vertex { struct triangle {
triangle() = default;
triangle(vertex v1, vertex v2, vertex v3)
- : v1(v1), v2(v2), v3(v3), bounding_box(v1.position, v2.position, v3.position)
+ : v1(v1), v2(v2), v3(v3)
{}
vec3 center() {
@@ -21,8 +18,6 @@ struct triangle { vertex v1;
vertex v2;
vertex v3;
-
- aabb bounding_box;
};
#endif // !__TRIANGLE_HPP_
|
