-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnumber.py
More file actions
46 lines (40 loc) · 1.49 KB
/
number.py
File metadata and controls
46 lines (40 loc) · 1.49 KB
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
vertex_positions = [
[ 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5], # right
[-0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5], # left
[ 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5], # top
[-0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5], # bottom
[-0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5], # front
[ 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5], # back
]
tex_coords = [
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
[0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0],
]
# shading = [
# 0.80, 0.80, 0.80, 0.80,
# 0.80, 0.80, 0.80, 0.80,
# 1.00, 1.00, 1.00, 1.00,
# 0.49, 0.49, 0.49, 0.49,
# 0.92, 0.92, 0.92, 0.92,
# 0.92, 0.92, 0.92, 0.92,
# ]
shading_values = [
[0.6, 0.6, 0.6, 0.6],
[0.6, 0.6, 0.6, 0.6],
[1.0, 1.0, 1.0, 1.0],
[0.4, 0.4, 0.4, 0.4],
[0.8, 0.8, 0.8, 0.8],
[0.8, 0.8, 0.8, 0.8],
]
# indices = [
# 0, 1, 2, 0, 2, 3, # right
# 4, 5, 6, 4, 6, 7, # left
# 8, 9, 10, 8, 10, 11, # top
# 12, 13, 14, 12, 14, 15, # bottom
# 16, 17, 18, 16, 18, 19, # front
# 20, 21, 22, 20, 22, 23, # back
# ]