Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 50 bytes modified

beta.r3js.org
-=yb4f310 2017-11-02 13:03:47 +01:00
parent e777928ade
commit 01a8bffc4f
1 changed files with 2 additions and 1 deletions

View File

@ -140,9 +140,10 @@ if (this.spawnTime > this.nextSpawnTime) {
}
this.flames.map(
function(flame) {
function(flame, index) {
flame.mesh.position.add(flame.direction);
flame.mesh.updateInstancePosition();
flame.mesh.instance.renderOrder = index;
}
);