From f86713062a75eb4621cfa17a6e8b000b02b4ec3a Mon Sep 17 00:00:00 2001 From: Theunis Johannes Botha Date: Wed, 7 Mar 2018 08:21:35 +0100 Subject: [PATCH] Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 684 bytes modified --- hv7vehw7se.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/hv7vehw7se.js b/hv7vehw7se.js index 318bad7..9befd8c 100644 --- a/hv7vehw7se.js +++ b/hv7vehw7se.js @@ -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');