I have an engine that uses either
three.js (3D WebGL rendering library) or
pixi.js (2D rendering library) depending on the game.
The problem is that
pixi.js has y-axis pointing downwards (same as in most 2D applications), while
three.js has it up, like most 3D rendering systems.
I am wondering if there is a way to gracefully handle the difference in the engine, so that the user doesn't have to remember to invert everything depending on if they use 2D or 3D.
Are there any known solutions or engines doing something similar? My first guess would be trying to invert all coordinates, but this seems like an ugly hack that won't necessarily handle all situations.