Update: CC - Before Render - Moorcow (7p8dxknb7m.js) 127 bytes modified
parent
3db0602f1b
commit
255768044b
|
@ -17,11 +17,11 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.scene = this.entityLoaded.scene;
|
this.scene = this.entityLoaded.scene;
|
||||||
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
|
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
|
||||||
this.fireParticleEngine = this.entityLoaded.fireParticleEngine;
|
this.fireParticleEngine = this.entityLoaded.fireParticleEngine;
|
||||||
|
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
|
||||||
|
|
||||||
this.toBlack = new THREE.Color(0.05, 0.05, 0.05);
|
this.toBlack = new THREE.Color(0.05, 0.05, 0.05);
|
||||||
this.toRed = new THREE.Color(0.02, 0, 0);
|
this.toRed = new THREE.Color(0.02, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
this.bull.instance.visible = false;
|
this.bull.instance.visible = false;
|
||||||
this.star.instance.visible = false;
|
this.star.instance.visible = false;
|
||||||
this.burger.instance.visible = false;
|
this.burger.instance.visible = false;
|
||||||
|
@ -233,11 +233,11 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
|
|
||||||
mesh.smokeParticleEngine = smokeParticleEngine;
|
mesh.smokeParticleEngine = smokeParticleEngine;
|
||||||
|
|
||||||
var fireParticleEngine = this.fireParticleEngine.clone();
|
var burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
||||||
fireParticleEngine.position = mesh.position.clone();
|
burningTreeParticleEngine.position = mesh.position.clone();
|
||||||
fireParticleEngine.updateInstance('position');
|
burningTreeParticleEngine.updateInstance('position');
|
||||||
fireParticleEngine.enabled = true;
|
burningTreeParticleEngine.enabled = true;
|
||||||
mesh.fireParticleEngine = fireParticleEngine;
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue