Skip to content

Commit cbf3c7f

Browse files
committed
Add camera settings for book 1 final scene
Resolves #344
1 parent a919d02 commit cbf3c7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,6 +2671,14 @@
26712671
int main() {
26722672
...
26732673
auto world = random_scene();
2674+
2675+
vec3 lookfrom(13,2,3);
2676+
vec3 lookat(0,0,0);
2677+
vec3 vup(0,1,0);
2678+
auto dist_to_focus = 10.0;
2679+
auto aperture = 0.1;
2680+
2681+
camera cam(lookfrom, lookat, vup, 20, aspect_ratio, aperture, dist_to_focus);
26742682
...
26752683
}
26762684
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)