From 0ac44c35397ea70cfcdd7236ce7b7873f45ddae7 Mon Sep 17 00:00:00 2001 From: Godzil Date: Fri, 28 Feb 2020 18:36:57 +0000 Subject: [PATCH] Use area light and make a proper canvas size to run the size. This test is eating memory like crazy. Need to see why. --- tests/arealight_test.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/arealight_test.cpp b/tests/arealight_test.cpp index a0807fc..6877e64 100644 --- a/tests/arealight_test.cpp +++ b/tests/arealight_test.cpp @@ -32,7 +32,7 @@ int main() World w = World(); /* Add lights */ -#if 0 +#if 1 Light light1 = Light(AREA_LIGHT, Point(-1, 2, 4), Vector(2, 0, 0), 8, Vector(0, 2, 0), 8, @@ -84,8 +84,7 @@ int main() /* ----------------------------- */ /* Set the camera */ - //Camera camera = Camera(400, 160, 0.7854); - Camera camera = Camera(800, 320, 0.7854); + Camera camera = Camera(400, 160, 0.7854); camera.setTransform(viewTransform(Point(-3, 1, 2.5), Point(0, 0.5, 0), Vector(0, 1, 0)));