Update: CC - SpoonLib - Before Render (uou2i9be9r.js) 307 bytes modified
parent
4b072768ba
commit
6348812be7
|
@ -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
|
Loading…
Reference in New Issue