Initial Commit: CC - Flame Particle Process - Forward Only (1jcd3sg3gh.js)
parent
e2a82464fa
commit
e8bf3fb688
|
@ -0,0 +1,32 @@
|
||||||
|
if (!this.entityLoaded) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var texture = GameLib.EntityManager.Instance.findComponentById('etff15p48k');
|
||||||
|
|
||||||
|
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.instance.offset.x = texture.offset.x;
|
||||||
|
texture.instance.offset.y = texture.offset.y;
|
||||||
|
|
||||||
|
//texture.updateInstance();
|
||||||
|
|
||||||
|
return null;
|
||||||
|
//@ sourceURL=textureBeforeRender.js
|
Loading…
Reference in New Issue