Update: CC - Demo New - Before Render (wlw063ovw9.js) 169 bytes modified
parent
d11f122f49
commit
71a2a54829
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue