I have a material where two of the parameter inputs are “TranslationAngleDegrees” and “TranslationMagnitude”. These will be used to have a texture pan at a certain speed (magnitude) in the direction specified by degrees. I’ve added a Panner node to the material, and has a Speed input which uses a vector2 (which I presume equates to UV direction).
So I figure I have to convert from degrees to a vector2, multiply by magnitude, and hook that up to the Speed input of the Panner node. This is where I’m stumped… I can’t figure out how to convert it correctly to get it to pan in the correct direction. I have searched the web for alternatives, but all have produced erratic results - like one where inputting 90 degrees made it pan almost, but not entirely 180 degrees.
Anyways, to make it easier, here’s a screenshot of the current status of my material:
http://i.imgur.com/7CVdFnm.png
For easy zooming of image: http://i.imgur.com/7CVdFnm.png