how to use rotateX in volume rendering

You were close. You can look at that example for more details.