diff --git a/dywmtohrda.js b/dywmtohrda.js index 3f0319c..6ae155c 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -145,7 +145,7 @@ this.flames.map( function(flame, index) { flame.mesh.position.add(flame.direction); flame.mesh.updateInstancePosition(); - flame.mesh.instance.renderOrder = flamesLength - index; + //flame.mesh.instance.renderOrder = flamesLength - index; } ); @@ -171,7 +171,7 @@ if (this.spawningBullets === true) { console.log('start: ', start); console.log('end: ', end); - this.meshFireBall.renderOrder = 1000 - this.flames.length; + this.meshFireBall.renderOrder = this.flames.length; var flameMesh = this.meshFireBall.clone(); flameMesh.position.x = start.x;