Update: CC - SpoonLib - Before Render (a4hb4ubk5z.js) 12 bytes modified

beta.r3js.org
-=yb4f310 2018-01-15 22:11:15 +01:00
parent b8206f172b
commit 08cff664ce
1 changed files with 5 additions and 5 deletions

View File

@ -12,13 +12,13 @@ if (!this.initialized) {
this.time += 0.01;
this.camera.position.x = 32 + Math.sin(this.time) * 20;// * (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.z = 100 + Math.sin(this.time) * 15;//Math.sin(this.camera.position.y) * Math.cos(this.camera.position.x);
this.camera.position.x = Math.sin(this.time) * 40;// * (window.innerWidth - (window.innerWidth / 2));
this.camera.position.y = Math.sin(this.time / 2) * 40;//Math.cos(this.time) * (window.innerHeight - (window.innerHeight / 2));
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.lookAt.x = 32;
this.camera.lookAt.y = 32;
this.camera.lookAt.x = 0;
this.camera.lookAt.y = 0;
this.camera.lookAt.z = 0;
this.camera.updateInstance('lookAt');