Skip to content

Commit

Permalink
Use area light and make a proper canvas size to run the size.
Browse files Browse the repository at this point in the history
This test is eating memory like crazy. Need to see why.
  • Loading branch information
Godzil committed Feb 28, 2020
1 parent c4b6807 commit 0ac44c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/arealight_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)));
Expand Down

0 comments on commit 0ac44c3

Please sign in to comment.