Rotating a cubemap

Please see discussion here, I posted correct answer there