Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 34 bytes modified

beta.r3js.org
-=yb4f310 2018-03-07 08:18:19 +01:00
parent c6e0648e2a
commit bc2a5373c0
1 changed files with 3 additions and 2 deletions

View File

@ -1452,11 +1452,12 @@ for (var x = -50; x < 50; x += 20) {
}
mesh.materials = [materialTreesAndRocks];
mesh.position.x = x;
mesh.position.z = z;
mesh.position.x = x * Math.random();
mesh.position.z = z * Math.random();
mesh.rotation.x = 0;
mesh.rotation.y = Math.random() * 3;
mesh.rotation.z = 0;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');