-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_all.sh
584 lines (266 loc) · 6 KB
/
build_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
cd 00-camera_and_multithreading
echo
echo enter 00-camera_and_multithreading
source ./build_and_run.sh
cd ..
cd 01-background
echo
echo enter 01-background
source ./build_and_run.sh
cd ..
cd 02-sphere_and_hittable_object
echo
echo enter 02-sphere_and_hittable_object
source ./build_and_run.sh
cd ..
cd 03-antialiasing
echo
echo enter 03-antialiasing
source ./build_and_run.sh
cd ..
cd 04-simple_diffuse_material
echo
echo enter 04-simple_diffuse_material
source ./build_and_run.sh
cd ..
cd 05-gamma_correction
echo
echo enter 05-gamma_correction
source ./build_and_run.sh
cd ..
cd 06-diffuse_material_lambertian
echo
echo enter 06-diffuse_material_lambertian
source ./build_and_run.sh
cd ..
cd 07-metal_material
echo
echo enter 07-metal_material
source ./build_and_run.sh
cd ..
cd 08-recursive_to_iterative
echo
echo enter 08-recursive_to_iterative
source ./build_and_run.sh
cd ..
cd 09-fuzzy_reflection
echo
echo enter 09-fuzzy_reflection
source ./build_and_run.sh
cd ..
cd 10-dielectrics_snell_law
echo
echo enter 10-dielectrics_snell_law
source ./build_and_run.sh
cd ..
cd 11-dielectrics_total_internal_reflection
echo
echo enter 11-dielectrics_total_internal_reflection
source ./build_and_run.sh
cd ..
cd 12-dielectrics_schlick_approximation
echo
echo enter 12-dielectrics_schlick_approximation
source ./build_and_run.sh
cd ..
cd 13-dielectrics_hollow_glass
echo
echo enter 13-dielectrics_hollow_glass
source ./build_and_run.sh
cd ..
cd 14-defocus_blur
echo
echo enter 14-defocus_blur
source ./build_and_run.sh
cd ..
cd 15-final_scene_0
echo
echo enter 15-final_scene_0
source ./build_and_run.sh
cd ..
cd 16-motion_blur
echo
echo enter 16-motion_blur
source ./build_and_run.sh
cd ..
cd 17-bvh
echo
echo enter 17-bvh
source ./build_and_run.sh
cd ..
cd 18-texture
echo
echo enter 18-texture
source ./build_and_run.sh
cd ..
cd 19-texture_shpere_space_coordinate
echo
echo enter 19-texture_shpere_space_coordinate
source ./build_and_run.sh
cd ..
cd 20-texture_sphere_texture_coordinate
echo
echo enter 20-texture_sphere_texture_coordinate
source ./build_and_run.sh
cd ..
cd 21-texture_sphere_image_texture
echo
echo enter 21-texture_sphere_image_texture
source ./build_and_run.sh
cd ..
cd 22-perlin_noise
echo
echo enter 22-perlin_noise
source ./build_and_run.sh
cd ..
cd 23-perlin_noise_smoothing
echo
echo enter 23-perlin_noise_smoothing
source ./build_and_run.sh
cd ..
cd 24-perlin_noise_hermitian_smoothing
echo
echo enter 24-perlin_noise_hermitian_smoothing
source ./build_and_run.sh
cd ..
cd 25-perlin_noise_frequency
echo
echo enter 25-perlin_noise_frequency
source ./build_and_run.sh
cd ..
cd 26-perlin_noise_random_vector
echo
echo enter 26-perlin_noise_random_vector
source ./build_and_run.sh
cd ..
cd 27-perlin_noise_turbulence
echo
echo enter 27-perlin_noise_turbulence
source ./build_and_run.sh
cd ..
cd 28-perlin_noise_phase
echo
echo enter 28-perlin_noise_phase
source ./build_and_run.sh
cd ..
cd 29-quad
echo
echo enter 29-quad
source ./build_and_run.sh
cd ..
cd 30-lights
echo
echo enter 30-lights
source ./build_and_run.sh
cd ..
cd 31-instance
echo
echo enter 31-instance
source ./build_and_run.sh
cd ..
cd 32-volumes
echo
echo enter 32-volumes
source ./build_and_run.sh
cd ..
cd 33-final_scene_1
echo
echo enter 33-final_scene_1
source ./build_and_run.sh
cd ..
cd 34-samplling_stratification
echo
echo enter 34-samplling_stratification
source ./build_and_run.sh
cd ..
cd 35-perfect_match_sampling_lambertian_material
echo
echo enter 35-perfect_match_sampling_lambertian_material
source ./build_and_run.sh
cd ..
cd 36-WRONG_uniform_sampling_lambertian_material
echo
echo enter 36-WRONG_uniform_sampling_lambertian_material
source ./build_and_run.sh
cd ..
cd 37-CORRECT_uniform_sampling_lambertian_material
echo
echo enter 37-CORRECT_uniform_sampling_lambertian_material
source ./build_and_run.sh
cd ..
cd 38-hemispherical_uniform_diffuse_material_uniform_sampling_aka_perfect_match_sampling
echo
echo enter 38-hemispherical_uniform_diffuse_material_uniform_sampling_aka_perfect_match_sampling
source ./build_and_run.sh
cd ..
cd 39-hemispherical_uniform_diffuse_material_consine_sampling
echo
echo enter 39-hemispherical_uniform_diffuse_material_consine_sampling
source ./build_and_run.sh
cd ..
cd 40-inversion_method_consine_sampling_lambertian_material
echo
echo enter 40-inversion_method_consine_sampling_lambertian_material
source ./build_and_run.sh
cd ..
cd 41-uniform_sphere_sampling_isotropic_material
echo
echo enter 41-uniform_sphere_sampling_isotropic_material
source ./build_and_run.sh
cd ..
cd 42-only_sampling_lights_directly
echo
echo enter 42-only_sampling_lights_directly
source ./build_and_run.sh
cd ..
cd 43-unidirectional_light
echo
echo enter 43-unidirectional_light
source ./build_and_run.sh
cd ..
cd 44-pdf_class
echo
echo enter 44-pdf_class
source ./build_and_run.sh
cd ..
cd 45-sampling_directions_towards_a_hittable_aka_only_sampling_lights_directly
echo
echo enter 45-sampling_directions_towards_a_hittable_aka_only_sampling_lights_directly
source ./build_and_run.sh
cd ..
cd 46-mixture_pdf
echo
echo enter 46-mixture_pdf
source ./build_and_run.sh
cd ..
cd 47-clean_up_pdf_management
echo
echo enter 47-clean_up_pdf_management
source ./build_and_run.sh
cd ..
cd 48-sampling_a_sphere_object
echo
echo enter 48-sampling_a_sphere_object
source ./build_and_run.sh
cd ..
cd 49-sampling_hittable_list_and_make_sphere_as_light_source
echo
echo enter 49-sampling_hittable_list_and_make_sphere_as_light_source
source ./build_and_run.sh
cd ..
cd 50-triangle
echo
echo enter 50-triangle
source ./build_and_run.sh
cd ..
cd 51-triangle_mesh
echo
echo enter 51-triangle_mesh
source ./build_and_run.sh
cd ..
cd 52-fragment_shader
echo
echo enter 52-fragment_shader
source ./build_and_run.sh
cd ..
python3 -B ./script/gen_readme.py > README.md