Skip to content

Commit a06f8f7

Browse files
committed
Fix camera initialization with explicit vup vector
Resolves #523
1 parent 55abc5f commit a06f8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@
26692669
This allows us to change the viewpoint:
26702670

26712671
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
2672-
camera cam(point3(-2,2,1), point3(0,0,-1), vup, 90, aspect_ratio);
2672+
camera cam(point3(-2,2,1), point3(0,0,-1), vec3(0,1,0), 90, aspect_ratio);
26732673
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26742674
[Listing [scene-free-view]: <kbd>[main.cc]</kbd> Scene with alternate viewpoint]
26752675

0 commit comments

Comments
 (0)