Adding BVH optimisation.

This commit is contained in:
Godzil
2020-03-12 07:21:44 +00:00
parent 47e31714f3
commit 7a43a98816
4 changed files with 155 additions and 0 deletions

View File

@@ -24,6 +24,8 @@
#include <transformation.h>
#include <worldoptimiser.h>
int main()
{
World w = World();
@@ -198,6 +200,9 @@ int main()
/* ----------------------------- */
BVHOptimisation opt;
w.finalise(opt);
/* Set the camera */
Camera camera = Camera(400, 200, 0.785);
camera.setTransform(viewTransform(Point(8, 6, -8),

View File

@@ -89,6 +89,9 @@ int main()
/* ----------------------------- */
BVHOptimisation opt;
w.finalise(opt);
/* Set the camera */
Camera camera = Camera(80, 40, M_PI/2);
camera.setTransform(viewTransform(Point(0, 7, 13),