Try new approach for rendering

Description

Currently, we need to render everything from back to front and that stopped us from changing rendering order (f.e. to batch primitives with the same texture). We also need to manually sort every instances. This 'new' approach tries to make it not required.