-
Notifications
You must be signed in to change notification settings - Fork 0
/
skyboxGeometry.obj
executable file
·85 lines (80 loc) · 1.17 KB
/
skyboxGeometry.obj
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
# Simple geometry for a cube that centers around the origin. Made 4 vertices for each face (many are identical)
#####################
#Front face
v -1.0 -1.0 1.0
v 1.0 -1.0 1.0
v 1.0 1.0 1.0
v -1.0 1.0 1.0
#Back face
v -1.0 -1.0 -1.0
v -1.0 1.0 -1.0
v 1.0 1.0 -1.0
v 1.0 -1.0 -1.0
#Top face
v -1.0 1.0 -1.0
v -1.0 1.0 1.0
v 1.0 1.0 1.0
v 1.0 1.0 -1.0
#Bottom face
v -1.0 -1.0 -1.0
v 1.0 -1.0 -1.0
v 1.0 -1.0 1.0
v -1.0 -1.0 1.0
#Right face
v 1.0 -1.0 -1.0
v 1.0 1.0 -1.0
v 1.0 1.0 1.0
v 1.0 -1.0 1.0
#Left face
v -1.0 -1.0 -1.0
v -1.0 -1.0 1.0
v -1.0 1.0 1.0
v -1.0 1.0 -1.0
#####################
# Texture coordinates
#####################
#Front
vt 0.0 0.0
vt 1.0 0.0
vt 1.0 1.0
vt 0.0 1.0
#Back
vt 0.0 0.0
vt 1.0 0.0
vt 1.0 1.0
vt 0.0 1.0
#Top
vt 0.0 0.0
vt 1.0 0.0
vt 1.0 1.0
vt 0.0 1.0
#Bottom
vt 0.0 0.0
vt 1.0 0.0
vt 1.0 1.0
vt 0.0 1.0
#Right
vt 0.0 0.0
vt 1.0 0.0
vt 1.0 1.0
vt 0.0 1.0
#Left
vt 0.0 0.0
vt 1.0 0.0
vt 1.0 1.0
vt 0.0 1.0
###############
# Face Indices
###############
f 1 2 3
f 1 3 4
f 5 6 7
f 5 7 8
f 9 10 11
f 9 11 12
f 13 14 15
f 13 15 16
f 17 18 19
f 17 19 20
f 21 22 23
f 21 23 24