Update: CC - Demo New - Before Render (wlw063ovw9.js) 169 bytes modified

beta.r3js.org
-=yb4f310 2018-02-16 12:19:15 +01:00
parent d11f122f49
commit 71a2a54829
1 changed files with 11 additions and 3 deletions

View File

@ -22,10 +22,18 @@ if (!this.initialized) {
this.time += 0.1 * data.delta; this.time += 0.1 * data.delta;
if (this.animate) { if (this.animate) {
this.time = 0; this.time = 0;
}
this.generateAnimationVectors();
if (this.time < 1) {
//start interpolating
this.updateAttributeArrays(this.time);
} else {
if (this.animate) {
//perform the last update
this.updateAttributeArrays(1);
this.animate = false;
}
} }
//this.camera.position.x = 10;Math.sin(this.time) * 4;// * (window.innerWidth - (window.innerWidth / 2)); //this.camera.position.x = 10;Math.sin(this.time) * 4;// * (window.innerWidth - (window.innerWidth / 2));