Update: CC - SpoonLib - Before Render (uou2i9be9r.js) 307 bytes modified

beta.r3js.org
-=yb4f310 2018-01-16 10:43:07 +01:00
parent 4b072768ba
commit 6348812be7
1 changed files with 12 additions and 1 deletions

View File

@ -5,8 +5,9 @@ if (!this.entityLoaded) {
if (!this.initialized) {
this.camera = this.entityLoaded.camera;
this.camera2d = this.entityLoaded.camera2d;
this.time = 0;
this.camera2dAnimation = true;
this.initialized = true;
}
@ -22,6 +23,16 @@ this.camera.lookAt.y = 0;
this.camera.lookAt.z = 0;
this.camera.updateInstance('lookAt');
if (this.camera2dAnimation) {
this.camera2d.fov -= 0.1;
this.camera2d.updateInstance('fov');
if (this.camera2d.fov < 75) {
this.camera2d.fov = 75;
this.camera2d.updateInstance('fov');
this.camera2dAnimation = false;
}
}
//console.log('camera x:' + this.camera.position.x + ',y: ' + this.camera.position.y + ',z: ' + this.camera.position.z);
//@ sourceURL=mouseMove.js