-
Notifications
You must be signed in to change notification settings - Fork 0
/
earth.yaml
52 lines (47 loc) · 950 Bytes
/
earth.yaml
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
- add: camera
width: 1280
height: 720
field-of-view: 0.8
from: [1, 2, -10]
to: [0, 1.1, 0]
up: [0, 1, 0]
- add: point-light
at: [-100, 100, -100]
intensity: [1, 1, 1]
- add: plane
material:
color: [1, 1, 1]
diffuse: 0.1
specular: 0
ambient: 0
reflective: 0.4
- add: cylinder
min: 0
max: 0.1
closed: true
material:
color: [1, 1, 1]
diffuse: 0.2
specular: 0
ambient: 0
reflective: 0.1
# the earth image map is from
# http://planetpixelemporium.com/earth.html (see "color map")
#
# converted from JPG to PPM via ImageMagick with:
# $ convert earthmap1k.jpg -compress none earthmap1k.ppm
- add: sphere
transform:
- [ rotate-y, 1.9 ]
- [ translate, 0, 1.1, 0 ]
material:
pattern:
kind: texture-map
uv-mapping: spherical
uv-pattern:
kind: image
ppm: earthmap1k.ppm
diffuse: 0.9
specular: 0.1
shininess: 10
ambient: 0.1