Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 34 bytes modified
parent
c6e0648e2a
commit
bc2a5373c0
|
@ -1452,11 +1452,12 @@ for (var x = -50; x < 50; x += 20) {
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.materials = [materialTreesAndRocks];
|
mesh.materials = [materialTreesAndRocks];
|
||||||
mesh.position.x = x;
|
mesh.position.x = x * Math.random();
|
||||||
mesh.position.z = z;
|
mesh.position.z = z * Math.random();
|
||||||
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.updateInstance('materials');
|
mesh.updateInstance('materials');
|
||||||
mesh.updateInstance('position');
|
mesh.updateInstance('position');
|
||||||
mesh.updateInstance('rotation');
|
mesh.updateInstance('rotation');
|
||||||
|
|
Loading…
Reference in New Issue