supporting non cubic textures