forked from michaljaz/webmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathghast.js
More file actions
37 lines (21 loc) · 742 Bytes
/
ghast.js
File metadata and controls
37 lines (21 loc) · 742 Bytes
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
// Generated by CoffeeScript 2.5.1
(function() {
//Ghast1
var ghast, ghast2, mat, texturex1, texturex2;
ghast = al.get("ghastF");
texturex1 = al.get("ghast");
texturex1.magFilter = THREE.NearestFilter;
ghast.children[1].material.map = texturex1;
ghast.children[0].children[0].scale.set(0.01, 0.01, 0.01);
ghast.children[1].material.color = new THREE.Color(0xffffff);
mat = ghast.children[1].material.clone();
scene.add(ghast);
//Ghast2
ghast2 = SkeletonUtils.clone(ghast);
texturex2 = al.get("ghastS");
texturex2.magFilter = THREE.NearestFilter;
ghast2.children[1].material = mat;
ghast2.children[1].material.map = texturex2;
ghast2.position.set(3, 0, 0);
scene.add(ghast2);
}).call(this);