stabilize inversion on cubemap