Update: CC - SpoonLib - Before Render (uou2i9be9r.js) 72 bytes modified
parent
f3b7283088
commit
8a509cb860
|
@ -3,10 +3,15 @@ if (!this.entityLoaded) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
this.camera = this.entityLoaded.camera;
|
this.camera = this.entityLoaded.camera;
|
||||||
this.camera2d = this.entityLoaded.camera2d;
|
this.camera2d = this.entityLoaded.camera2d;
|
||||||
this.time = 0;
|
this.time = 0;
|
||||||
|
|
||||||
|
this.camera2d.fov = 180;
|
||||||
|
this.camera2d.updateInstance('fov');
|
||||||
|
|
||||||
this.camera2dAnimation = true;
|
this.camera2dAnimation = true;
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +29,7 @@ this.camera.lookAt.z = 0;
|
||||||
this.camera.updateInstance('lookAt');
|
this.camera.updateInstance('lookAt');
|
||||||
|
|
||||||
if (this.camera2dAnimation) {
|
if (this.camera2dAnimation) {
|
||||||
this.camera2d.fov -= 0.2;//Math.sin(time);
|
this.camera2d.fov -= Math.cos(this.time) / 4;
|
||||||
this.camera2d.updateInstance('fov');
|
this.camera2d.updateInstance('fov');
|
||||||
if (this.camera2d.fov < 75) {
|
if (this.camera2d.fov < 75) {
|
||||||
this.camera2d.fov = 75;
|
this.camera2d.fov = 75;
|
||||||
|
|
Loading…
Reference in New Issue