How do i rotate a linear gradient?

Every face has its UV mapping. You should remap the box or try to use BoundingBoxBased_0-1_UVW: