Orthographic camera functionality for the Defold game engine
FIX: Check window width and height in render script and ignore frames when width or height is 0
NEW: Added camera.world_to_window()
(Thanks @dri-richard for the contribution)
FIX: Set stencil mask (Fix for https://forum.defold.com/t/orthographic-strange-gui-stencil-behaviour/69799)
NEW: The render script now calculates the view frustum per camera and passes this to the draw call. Thanks @8bitskull
FIX: Make sure the camera renders with the correct aspect ratio when the a custom viewport with another aspect ratio than the one in game.project is used
FIX: The window_to_world() function was broken after recent viewport change. Thanks to @546342 for the fix!
FIX: Automatically refresh list of camera ids after camera.update() and before use of camera.get_cameras()
NEW: You can now call most camera.* functions without specifying a camera id to get the first camera. This is useful in games where you know there is ever only a single camera.