Added support for cubic 3d