Skip to content

Commit 68f312d

Browse files
committed
Listing 60 A simple rectangle light plus illumi...
1 parent 7eb660f commit 68f312d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TheNextWeek/main.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ void simple_light() {
203203
world.add(make_shared<sphere>(point3(0,2,0), 2, make_shared<lambertian>(pertext)));
204204

205205
auto difflight = make_shared<diffuse_light>(color(4,4,4));
206+
world.add(make_shared<sphere>(point3(0,7,0), 2, difflight));
206207
world.add(make_shared<quad>(point3(3,1,-2), vec3(2,0,0), vec3(0,2,0), difflight));
207208

208209
camera cam;

0 commit comments

Comments
 (0)