-
Notifications
You must be signed in to change notification settings - Fork 0
/
triangles.yaml
64 lines (58 loc) · 1.29 KB
/
triangles.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
53
54
55
56
57
58
59
60
61
62
63
64
# ======================================================
# the camera
# ======================================================
- add: camera
width: 800
height: 600
field_of_view: 1.047
from: [0, 1.5, -5]
to: [0, 1, 0]
up: [0, 1, 0]
# ======================================================
# light sources
# ======================================================
- add: light
at: [-10, 10, -10]
intensity: [1, 1, 1]
# ======================================================
# describe the elements of the scene
# ======================================================
# floor
- add: plane
material:
color: [1, 0.9, 0.9]
specular: 0
- add: triangle
p1: [0, 1, 0]
p2: [-1, 0, 0]
p3: [1, 0, 0]
transform:
- [translate, -0.5, 0, 0.5]
material:
color: [0.1, 1, 0.5]
diffuse: 0.7
specular: 0.3
- add: triangle
p1: [0, 1, 0]
p2: [-1, 0, 0]
p3: [1, 0, 0]
transform:
- [scale, 0.5, 0.5, 0.5]
- [translate, 1.5, 0, -0.5]
- [rotate-y, 0.6]
material:
color: [0.5, 1, 0.1]
diffuse: 0.7
specular: 0.3
- add: triangle
p1: [0, 1, 0]
p2: [-1, 0, 0]
p3: [1, 0, 0]
transform:
- [scale, 0.33, 0.33, 0.33]
- [translate, -2.75, 0, -0.95]
- [rotate-y, 1.14]
material:
color: [1, 0.8, 0.1]
diffuse: 0.7
specular: 0.3