Converts between environment map formats