File tree Expand file tree Collapse file tree 1 file changed +38
-12
lines changed Expand file tree Collapse file tree 1 file changed +38
-12
lines changed Original file line number Diff line number Diff line change @@ -353,23 +353,49 @@ int main() {
353
353
354
354
std::cout << " P3\n " << image_width << ' ' << image_height << " \n 255\n " ;
355
355
356
- auto R = cos (pi/4 );
357
-
358
356
hittable_list world;
357
+
359
358
switch (0 ) {
360
- case 1 : world = random_scene (); break ;
361
- case 2 : world = two_spheres (); break ;
362
- case 3 : world = two_perlin_spheres (); break ;
363
- case 4 : world = earth (); break ;
364
- case 5 : world = simple_light (); break ;
359
+ case 1 :
360
+ world = random_scene ();
361
+ break ;
362
+
363
+ case 2 :
364
+ world = two_spheres ();
365
+ break ;
366
+
367
+ case 3 :
368
+ world = two_perlin_spheres ();
369
+ break ;
370
+
371
+ case 4 :
372
+ world = earth ();
373
+ break ;
374
+
375
+ case 5 :
376
+ world = simple_light ();
377
+ break ;
365
378
366
379
default :
367
- case 6 : world = cornell_box (); break ;
380
+ case 6 :
381
+ world = cornell_box ();
382
+ break ;
383
+
384
+ case 7 :
385
+ world = cornell_balls ();
386
+ break ;
387
+
388
+ case 8 :
389
+ world = cornell_smoke ();
390
+ break ;
391
+
392
+ case 9 :
393
+ world = cornell_final ();
394
+ break ;
368
395
369
- case 7 : world = cornell_balls (); break ;
370
- case 8 : world = cornell_smoke (); break ;
371
- case 9 : world = cornell_final (); break ;
372
- case 10 : world = final_scene (); break ;
396
+ case 10 :
397
+ world = final_scene ();
398
+ break ;
373
399
}
374
400
375
401
vec3 lookfrom (278 , 278 , -800 );
You can’t perform that action at this time.
0 commit comments