Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 123 bytes modified
parent
6b71a16183
commit
f5873ff7de
|
@ -1451,20 +1451,15 @@ for (var x = -50; x < 50; x += 10) {
|
||||||
type = 1;
|
type = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
material = materialTreesAndRocks.clone();
|
mesh.materials = [materialTreesAndRocks];
|
||||||
mesh.materials = [material];
|
|
||||||
mesh.position.x = x;
|
mesh.position.x = x;
|
||||||
mesh.position.z = z;
|
mesh.position.z = z;
|
||||||
mesh.rotation.x = 0;
|
mesh.rotation.x = 0;
|
||||||
mesh.rotation.y = Math.random() * 3;
|
mesh.rotation.y = Math.random() * 3;
|
||||||
mesh.rotation.z = 0;
|
mesh.rotation.z = 0;
|
||||||
mesh.scale.x = 5;
|
|
||||||
mesh.scale.y = 5;
|
|
||||||
mesh.scale.z = 5;
|
|
||||||
mesh.updateInstance('materials');
|
mesh.updateInstance('materials');
|
||||||
mesh.updateInstance('position');
|
mesh.updateInstance('position');
|
||||||
mesh.updateInstance('rotation');
|
mesh.updateInstance('rotation');
|
||||||
mesh.updateInstance('scale');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue