Skip to content

Commit 7f410b6

Browse files
authored
Merge pull request #345 from RayTracing/fix-344
Add camera settings for book 1 final scene
2 parents fe289c1 + 828ee15 commit 7f410b6

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 9 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -2747,6 +2755,7 @@
27472755
- Benjamin Summerton
27482756
- Bennett Hardwick
27492757
- Dan Drummond
2758+
- David Chambers
27502759
- David Hart
27512760
- Eric Haines
27522761
- Fabio Sancinetti

books/RayTracingTheNextWeek.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,6 +2705,7 @@
27052705
- Benjamin Summerton
27062706
- Bennett Hardwick
27072707
- Dan Drummond
2708+
- David Chambers
27082709
- David Hart
27092710
- Eric Haines
27102711
- Fabio Sancinetti

books/RayTracingTheRestOfYourLife.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,6 +2383,7 @@
23832383
- Benjamin Summerton
23842384
- Bennett Hardwick
23852385
- Dan Drummond
2386+
- David Chambers
23862387
- David Hart
23872388
- Eric Haines
23882389
- Fabio Sancinetti

0 commit comments

Comments
 (0)