Skip to content

Commit 1e5b051

Browse files
committed
added right parentheses to all 4 lines, Listing: Scene with dielectric sphere
1 parent 7f410b6 commit 1e5b051

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,13 +2224,13 @@
22242224

22252225
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
22262226
world.add(make_shared<sphere>(
2227-
vec3(0,0,-1), 0.5, make_shared<lambertian>(vec3(0.1, 0.2, 0.5)));
2227+
vec3(0,0,-1), 0.5, make_shared<lambertian>(vec3(0.1, 0.2, 0.5))));
22282228

22292229
world.add(make_shared<sphere>(
2230-
vec3(0,-100.5,-1), 100, make_shared<lambertian>(vec3(0.8, 0.8, 0.0)));
2230+
vec3(0,-100.5,-1), 100, make_shared<lambertian>(vec3(0.8, 0.8, 0.0))));
22312231

2232-
world.add(make_shared<sphere>(vec3(1,0,-1), 0.5, make_shared<metal>(vec3(0.8, 0.6, 0.2), 0.0));
2233-
world.add(make_shared<sphere>(vec3(-1,0,-1), 0.5, make_shared<dielectric>(1.5));
2232+
world.add(make_shared<sphere>(vec3(1,0,-1), 0.5, make_shared<metal>(vec3(0.8, 0.6, 0.2), 0.0)));
2233+
world.add(make_shared<sphere>(vec3(-1,0,-1), 0.5, make_shared<dielectric>(1.5)));
22342234
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22352235
[Listing [scene-dielectric]: <kbd>[main.cc]</kbd> Scene with dielectric sphere]
22362236

0 commit comments

Comments
 (0)