Initial Commit: CC - SnailRunner - Before Render (94xi7aitax.js)

beta.r3js.org
-=yb4f310 2018-03-09 00:36:40 +01:00
parent 49a4547c0f
commit 74af7335a8
1 changed files with 38 additions and 0 deletions

38
94xi7aitax.js Normal file
View File

@ -0,0 +1,38 @@
if (!this.entityLoaded) {
return;
}
if (!this.initialized) {
/**
* Meshes
*/
this.road = this.entityLoaded.road;
this.cloud = this.entityLoaded.cloud;
this.time = 0;
// this.spawnCloud = function() {
// this.cloud.position.x = 5;
// this.cloud.position.z = (Math.random() * 0.2) - 0.1
// this.cloud.updateInstance('position');
// }
this.initialized = true;
}
//this.road.rotation.z += 0.004 * data.delta;
//this.road.updateInstance('rotation');
//this.cloud.position.x -= data.delta;
//this.cloud.updateInstance('position');
this.time += data.delta;
if (this.time > 5) {
// this.spawnCloud();
this.time = 0;
}
//@ sourceURL=beforeRender.js