- Home /
UV Shader Animation
Can I animate the uv's of my models via shaders? For exemple, if I have a plane with a color texture, can I animate the position of the texture thru shaders? If it is possible, can you show me the way I should follow to do it.
Answer by Eric5h5 · May 13, 2010 at 08:06 PM
You don't need a shader, you can just change the .x and .y of Material.mainTextureOffset.
Geez, Dave, you bumped this question... now poor GODLI$$anonymous$$E is going to get hammered again for the naïveté of his 15-month ago former-self. Such is karma...
Answer by GODLIKE · May 13, 2010 at 07:59 PM
No, for what I know (I am still newbie yet) I can see no parameter for animating the position of texture in the built in shaders. I know this well because I need it to make a lava flow and I'll have to find another solution for it...
You can make animated texture by tiling anyway... but of course it's expensive and never as smooth as texture scroll.
Without getting into programmable shaders, you can do what Eric said, or use the $$anonymous$$atrix command, which can be applied per-texture stage.
http://unity3d.com/support/documentation/Components/SL-SetTexture.html