We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0923f5 commit 668c7b7Copy full SHA for 668c7b7
test.cpp
@@ -24,7 +24,7 @@ Optional arguments:\n\
24
-x N\t\tSpecify width in pixels\n\
25
-y N\t\tSpecify height in pixels\n", argv[0]);
26
27
- std::string obj_infile = "data/cornell.obj";
+ std::string obj_infile = "data/fireplace_room.obj";
28
std::string ppm_outfile = "output.ppm";
29
if (argc > 1) {
30
int which = 0;
@@ -58,12 +58,12 @@ Optional arguments:\n\
58
printf("Rendering with width %d, height %d, spp %d\n", width, height, spp);
59
60
float vfov = 0.79f;
61
- float aspect = 1.f;
+ float aspect = (float)width / (float)height;
62
63
- //Vec3 look_from(5.03f, 0.91f, -2.20f);
64
- //Vec3 look_at(-0.21f, 0.83f, -0.34f);
65
- Vec3 look_from(0.f, 1.f, 3.5f);
66
- Vec3 look_at(0.f, 1.f, -1.f);
+ Vec3 look_from(5.03f, 0.91f, -2.20f);
+ Vec3 look_at(-0.21f, 0.83f, -0.34f);
+ //Vec3 look_from(0.f, 1.0f, 3.5f);
+ //Vec3 look_at(0.f, 1.0f, -1.f);
67
68
Vec3 view_up(0.f, 1.f, 0.f);
69
0 commit comments