-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkered_cube.yaml
126 lines (116 loc) · 2.67 KB
/
checkered_cube.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
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
- add: camera
width: 800
height: 400
field-of-view: 0.8
from: [0, 0, -20]
to: [0, 0, 0]
up: [0, 1, 0]
- add: point-light
at: [0, 100, -100]
intensity: [0.25, 0.25, 0.25]
- add: point-light
at: [0, -100, -100]
intensity: [0.25, 0.25, 0.25]
- add: point-light
at: [-100, 0, -100]
intensity: [0.25, 0.25, 0.25]
- add: point-light
at: [100, 0, -100]
intensity: [0.25, 0.25, 0.25]
- define: mapped-cube
material:
pattern:
kind: cube-map
left:
kind: align-check
main: [1, 1, 0] # yellow
ul: [0, 1, 1] # cyan
ur: [1, 0, 0] # red
bl: [0, 0, 1] # blue
br: [1, 0.5, 0] # brown
front:
kind: align-check
main: [0, 1, 1] # cyan
ul: [1, 0, 0] # red
ur: [1, 1, 0] # yellow
bl: [1, 0.5, 0] # brown
br: [0, 1, 0] # green
right:
kind: align-check
main: [1, 0, 0] # red
ul: [1, 1, 0] # yellow
ur: [1, 0, 1] # purple
bl: [0, 1, 0] # green
br: [1, 1, 1] # white
back:
kind: align-check
main: [0, 1, 0] # green
ul: [1, 0, 1] # purple
ur: [0, 1, 1] # cyan
bl: [1, 1, 1] # white
br: [0, 0, 1] # blue
up:
kind: align-check
main: [1, 0.5, 0] # brown
ul: [0, 1, 1] # cyan
ur: [1, 0, 1] # purple
bl: [1, 0, 0] # red
br: [1, 1, 0] # yellow
down:
kind: align-check
main: [1, 0, 1] # purple
ul: [1, 0.5, 0] # brown
ur: [0, 1, 0] # green
bl: [0, 0, 1] # blue
br: [1, 1, 1] # white
ambient: 0.2
specular: 0
diffuse: 0.8
- add: cube
extend: [mapped-cube]
transform:
- [rotate-y, 0.7854]
- [rotate-x, 0.7854]
- [translate, -6, 2, 0]
- add: cube
extend: [mapped-cube]
transform:
- [rotate-y, 2.3562]
- [rotate-x, 0.7854]
- [translate, -2, 2, 0]
- add: cube
extend: [mapped-cube]
transform:
- [rotate-y, 3.927]
- [rotate-x, 0.7854]
- [translate, 2, 2, 0]
- add: cube
extend: [mapped-cube]
transform:
- [rotate-y, 5.4978]
- [rotate-x, 0.7854]
- [translate, 6, 2, 0]
- add: cube
extend: [mapped-cube]
transform:
- [rotate-y, 0.7854]
- [rotate-x, -0.7854]
- [translate, -6, -2, 0]
- add: cube
extend: [mapped-cube]
transform:
- [rotate-y, 2.3562]
- [rotate-x, -0.7854]
- [translate, -2, -2, 0]
- add: cube
extend: [mapped-cube]
transform:
- [rotate-y, 3.927]
- [rotate-x, -0.7854]
- [translate, 2, -2, 0]
- add: cube
extend: [mapped-cube]
transform:
- [rotate-y, 5.4978]
- [rotate-x, -0.7854]
- [translate, 6, -2, 0]