Get Actor x, y, z rotation angle in shader

Hmm the results are somewhat different from the values displayed in the editor viewport, but I thought they were at least mathematically equivalent? Anyway, this is pretty much my limit for this kind of stuff, sorry. Maybe someone else can figure out a more comprehensive solution.