Initial Commit: Flame Particle Process - Forward Only (vaq8lxuek1.js)

beta.r3js.org
-=yb4f310 2017-11-12 13:07:13 +01:00
parent a93ca1e58f
commit c5431444ae
1 changed files with 25 additions and 0 deletions

25
vaq8lxuek1.js Normal file
View File

@ -0,0 +1,25 @@
var texture = GameLib.EntityManager.Instance.findComponentById('gm3fvv45dl');
if (!this.initialized) {
texture.offset.x = 0;
texture.offset.y = 0;
texture.updateInstance();
this.initialized = true;
return;
}
texture.offset.x += 0.1;
if (texture.offset.x >= 0.9) {
if (texture.offset.y >= 0.8) {
texture.offset.x = 0;
texture.offset.y = 0;
} else {
texture.offset.x = 0;
texture.offset.y += 0.2;
}
}
texture.updateInstance();
return null;
//@ sourceURL=textureBeforeRender.js