Why?
Did you ever make a mobile WebGL app, and your client said "The scene looks distant on landscape". Well, this plug-in attempts to fix that, by adjusting the field of view. See the before and after on the screenshot. You might be thinking, why don't I lock the phone's orientation. I'd do that, except it doesn't work on Safari. Hence, this plug-in.
How do I use?
Attach the script under the scripts folder to your main camera. That's it.
If you like my asset, please consider leaving a review! Constructive criticism is always welcome, and don't hesitate to contact me if you run into any issues!
Any requirements?
Well, your browser needs to support the orientationchange api. I tested on android chrome and iOS Safari. So it should work on those. Hopefully it works on other browsers as well but Safari and Chrome are the only ones that concern me.
Stop and Play?
Yes, you can disable and re-enable the field of view adjustment at any time as well. Although I don't see a use case for this, the option is there.