Skip to content

Commit b891b54

Browse files
committed
Use vup for cam, as elsewhere
1 parent ee78d89 commit b891b54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

books/RayTracingTheRestOfYourLife.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,14 +811,14 @@
811811

812812
point3 lookfrom(278, 278, -800);
813813
point3 lookat(278, 278, 0);
814-
vec3 up(0, 1, 0);
814+
vec3 vup(0, 1, 0);
815815
auto dist_to_focus = 10.0;
816816
auto aperture = 0.0;
817817
auto vfov = 40.0;
818818
auto t0 = 0.0;
819819
auto t1 = 1.0;
820820

821-
camera cam(lookfrom, lookat, up, vfov, aspect_ratio, aperture, dist_to_focus, t0, t1);
821+
camera cam(lookfrom, lookat, vup, vfov, aspect_ratio, aperture, dist_to_focus, t0, t1);
822822

823823
// Render
824824

src/TheRestOfYourLife/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ int main() {
112112

113113
point3 lookfrom(278, 278, -800);
114114
point3 lookat(278, 278, 0);
115-
vec3 up(0, 1, 0);
115+
vec3 vup(0, 1, 0);
116116
auto dist_to_focus = 10.0;
117117
auto aperture = 0.0;
118118
auto vfov = 40.0;
119119
auto t0 = 0.0;
120120
auto t1 = 1.0;
121121

122-
camera cam(lookfrom, lookat, up, vfov, aspect_ratio, aperture, dist_to_focus, t0, t1);
122+
camera cam(lookfrom, lookat, vup, vfov, aspect_ratio, aperture, dist_to_focus, t0, t1);
123123

124124
// Render
125125

0 commit comments

Comments
 (0)