Added support for the 3rd texture coordinate for cubemaps and 3D