Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 48 bytes modified
parent
cc8cc4cead
commit
8d6c4b9b8e
|
@ -139,11 +139,13 @@ if (this.spawnTime > this.nextSpawnTime) {
|
||||||
this.spawnEnemy();
|
this.spawnEnemy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var flamesLength = this.flames.length;
|
||||||
|
|
||||||
this.flames.map(
|
this.flames.map(
|
||||||
function(flame, index) {
|
function(flame, index) {
|
||||||
flame.mesh.position.add(flame.direction);
|
flame.mesh.position.add(flame.direction);
|
||||||
flame.mesh.updateInstancePosition();
|
flame.mesh.updateInstancePosition();
|
||||||
flame.mesh.instance.renderOrder = 1000 - index;
|
flame.mesh.instance.renderOrder = flamesLength - index;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue