-
Notifications
You must be signed in to change notification settings - Fork 0
/
chapter11_nested_spheres.yml
58 lines (53 loc) · 1.06 KB
/
chapter11_nested_spheres.yml
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
# Scene description for image on page 159 of
# "The Ray Tracer Challenge", depicting two nested
# glass spheres against a checkered background.
#
# author: Jamis Buck <[email protected]>
- add: camera
width: 600
height: 600
field-of-view: 0.45
from: [ 0, 0, -5 ]
to: [ 0, 0, 0 ]
up: [ 0, 1, 0 ]
- add: light
intensity: [ 0.9, 0.9, 0.9 ]
at: [ 2, 10, -5 ]
# wall
- add: plane
transform:
- [ rotate-x, 1.5708 ]
- [ translate, 0, 0, 10 ]
material:
pattern:
type: checkers
colors:
- [ 0.15, 0.15, 0.15 ]
- [ 0.85, 0.85, 0.85 ]
ambient: 0.8
diffuse: 0.2
specular: 0
# glass ball
- add: sphere
material:
color: [ 1, 1, 1 ]
ambient: 0
diffuse: 0
specular: 0.9
shininess: 300
reflective: 0.9
transparency: 0.9
refractive-index: 1.5
# hollow center
- add: sphere
transform:
- [ scale, 0.5, 0.5, 0.5 ]
material:
color: [ 1, 1, 1 ]
ambient: 0
diffuse: 0
specular: 0.9
shininess: 300
reflective: 0.9
transparency: 0.9
refractive-index: 1.0000034