Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 684 bytes modified
parent
88c18eeca8
commit
f86713062a
|
@ -1428,6 +1428,42 @@ burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|||
burningTreeParticleEngine.updateInstance('position');
|
||||
this.treeLarge.burningTreeParticleEngine = burningTreeParticleEngine;
|
||||
|
||||
|
||||
var type = 0;
|
||||
|
||||
for (var x = -200; x < 200; x += 20) {
|
||||
|
||||
for (var z = -170; z > -230; z -= 10) {
|
||||
|
||||
type += 1;
|
||||
|
||||
if (type == 1) {
|
||||
mesh = treeSmall.clone();
|
||||
mesh.position.y = -14.19;
|
||||
}
|
||||
if (type == 2) {
|
||||
mesh = treeMedium.clone();
|
||||
mesh.position.y = -10.26;
|
||||
}
|
||||
if (type == 3) {
|
||||
mesh = treeLarge.clone();
|
||||
mesh.position.y = -4.43;
|
||||
type = 0;
|
||||
}
|
||||
|
||||
mesh.materials = [materialTreesAndRocks];
|
||||
mesh.position.x = x;
|
||||
mesh.position.z = z * Math.random() - 250;
|
||||
mesh.rotation.x = 0;
|
||||
mesh.rotation.y = Math.random() * 3;
|
||||
mesh.rotation.z = 0;
|
||||
|
||||
mesh.updateInstance('materials');
|
||||
mesh.updateInstance('position');
|
||||
mesh.updateInstance('rotation');
|
||||
}
|
||||
}
|
||||
|
||||
this.treeSmall.visible = false;
|
||||
this.treeSmall.updateInstance('visible');
|
||||
|
||||
|
|
Loading…
Reference in New Issue