Replaced envtoirr with amd cubemapgen, needs to cleanup