diff options
author | Aki <please@ignore.pl> | 2021-04-07 01:28:28 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-04-07 01:28:28 +0200 |
commit | 7a8450fab37bfaf4a4ff66ac0c453ad77d1bbdfd (patch) | |
tree | 0400646813037f0512812efcbe1cd22dedf7b8d9 | |
parent | 392bc996c73870da8a01603eed31b7d213bc9d8e (diff) | |
download | derelict-prototype-7a8450fab37bfaf4a4ff66ac0c453ad77d1bbdfd.zip derelict-prototype-7a8450fab37bfaf4a4ff66ac0c453ad77d1bbdfd.tar.gz derelict-prototype-7a8450fab37bfaf4a4ff66ac0c453ad77d1bbdfd.tar.bz2 |
Moved grid helper to skirmishgrid
-rw-r--r-- | derelict.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/derelict.js b/derelict.js index 6e8ba5b..d8c967d 100644 --- a/derelict.js +++ b/derelict.js @@ -7,6 +7,7 @@ const SCALE = 10000 class SkirmishGrid { scene = new THREE.Scene() + helper = new THREE.GridHelper(50, 50) camera controls renderer @@ -26,6 +27,8 @@ class SkirmishGrid { this.controls.maxDistance = 30 this.controls.enableDamping = true this.controls.dampingFactor = 0.4 + + this.add(this.helper) } add(obj) { @@ -172,9 +175,6 @@ function init() { icon.then(icon => processKillmails(grid, killmails, icon)) }) - const helper = new THREE.GridHelper(50, 50) - grid.add(helper) - const loader = new THREE.TextureLoader() loader.loadAsync("https://i.imgur.com/rDGOLFC.jpg") // TODO: Don't use imgur as CDN. .then(skybox => { |