Changed drawing order for 2D and 3D layers