-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvertex.js
64 lines (62 loc) · 2.15 KB
/
vertex.js
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
// Whole vertex array for the hydra
var meshVertexes = [
vec3(-0.155888, 0.102566, -0.117187),
vec3(-0.153261, -0.106854, -0.114652),
vec3(-0.188305, 0.110155, 0.227646),
vec3(-0.186318, -0.106299, 0.229564),
vec3(0.36066, 0.108978, -0.122602),
vec3(0.363286, -0.100442, -0.120067),
vec3(0.352069, 0.111113, 0.062612),
vec3(0.354695, -0.098307, 0.065147),
vec3(-0.017965, -0.105221, -0.119899),
vec3(0.015039, 0.119801, 0.121843),
vec3(0.017792, -0.113668, 0.124421),
vec3(-0.020591, 0.104199, -0.122434),
vec3(-0.231219, 0.104324, -0.082961),
vec3(-0.228577, -0.109753, -0.080339),
vec3(-0.295911, 0.107826, 0.198312),
vec3(-0.293924, -0.108627, 0.200231),
vec3(-0.159366, 0.115144, -0.022415),
vec3(-0.165297, 0.122723, 0.094908),
vec3(-0.162764, -0.12224, 0.097438),
vec3(-0.156706, -0.113753, -0.019638),
vec3(-0.007205, -0.104496, -0.041574),
vec3(0.004577, -0.108875, 0.040375),
vec3(-0.252097, 0.115335, -0.014357),
vec3(-0.265653, 0.121346, 0.089118),
vec3(-0.263151, -0.124205, 0.091554),
vec3(-0.249369, -0.119969, -0.011624),
vec3(-0.155012, 0.032759, -0.116342),
vec3(-0.154137, -0.037048, -0.115497),
vec3(-0.230348, 0.032924, -0.081813),
vec3(-0.229469, -0.038368, -0.080938),
vec3(-0.25118, 0.036851, -0.013283),
vec3(-0.250271, -0.041528, -0.012373),
vec3(-0.264818, 0.039484, 0.089933),
vec3(-0.263984, -0.042365, 0.090744),
vec3(0.003162, 0.1146, 0.040418),
vec3(-0.008714, 0.1094, -0.041008),
];
// Tail 1
var tail1Vertexes = [
vec3(-0.857005, -0.156254, -0.666875),
vec3(-0.858008, -0.157831, 0.64849),
vec3(-0.875371, 1.20829, -0.665255),
vec3(-0.876374, 1.20671, 0.65011),
vec3(1.17279, -1.05008, -0.47676),
vec3(1.16233, -1.05281, 0.497097),
vec3(1.22767, -0.411197, -0.474385),
vec3(1.21721, -0.413919, 0.499472),
];
var tail2Vertexes = [
vec3(-1.09157, -0.558745, -0.495984),
vec3(-1.09882, -0.561322, 0.529269),
vec3(-1.10831, 0.131296, -0.509052),
vec3(-1.11369, 0.125938, 0.558244),
vec3(1.37884, 0.494832, 0.309202),
vec3(1.39074, 0.504145, -0.369755),
vec3(1.54241, 0.084285, -0.372449),
vec3(1.53051, 0.074986, 0.306512),
];
var indeces = [];
var colorsArray = [];