From 6348812be7fe52e3a29a0abf2df7b6fec11054f6 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 16 Jan 2018 10:43:07 +0100 Subject: [PATCH] Update: CC - SpoonLib - Before Render (uou2i9be9r.js) 307 bytes modified --- uou2i9be9r.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/uou2i9be9r.js b/uou2i9be9r.js index 9a19cb9..c087f00 100644 --- a/uou2i9be9r.js +++ b/uou2i9be9r.js @@ -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 \ No newline at end of file