Update: CC - SpoonLib - Before Render (a4hb4ubk5z.js) 12 bytes modified
parent
b8206f172b
commit
08cff664ce
|
@ -12,13 +12,13 @@ if (!this.initialized) {
|
||||||
|
|
||||||
this.time += 0.01;
|
this.time += 0.01;
|
||||||
|
|
||||||
this.camera.position.x = 32 + Math.sin(this.time) * 20;// * (window.innerWidth - (window.innerWidth / 2));
|
this.camera.position.x = Math.sin(this.time) * 40;// * (window.innerWidth - (window.innerWidth / 2));
|
||||||
this.camera.position.y = 32 + Math.sin(this.time / 2) * 20;//Math.cos(this.time) * (window.innerHeight - (window.innerHeight / 2));
|
this.camera.position.y = Math.sin(this.time / 2) * 40;//Math.cos(this.time) * (window.innerHeight - (window.innerHeight / 2));
|
||||||
this.camera.position.z = 100 + Math.sin(this.time) * 15;//Math.sin(this.camera.position.y) * Math.cos(this.camera.position.x);
|
this.camera.position.z = 150 + Math.sin(this.time) * 50;//Math.sin(this.camera.position.y) * Math.cos(this.camera.position.x);
|
||||||
this.camera.updateInstance('position');
|
this.camera.updateInstance('position');
|
||||||
|
|
||||||
this.camera.lookAt.x = 32;
|
this.camera.lookAt.x = 0;
|
||||||
this.camera.lookAt.y = 32;
|
this.camera.lookAt.y = 0;
|
||||||
this.camera.lookAt.z = 0;
|
this.camera.lookAt.z = 0;
|
||||||
this.camera.updateInstance('lookAt');
|
this.camera.updateInstance('lookAt');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue