- Home /
scroll texture from center to nearest edge
Hi, I am trying to scroll texture from center towards edge. For example, for texture containing rings, it should appear as rings are originating from center and moving towards edge. Please help me out here.
Thanks in advance.
Answer by iBicha · Jul 30, 2017 at 02:28 AM
Hello SushantIngle1990
This sounds like you need to manipulate the mainTextureOffset.
The example gives you a way to scroll a texture. The centered coords are (0,0). If you scroll in any direction by 0.5 ( which means setting mainTextureOffset to (-0.5,0), (0.5,0), (0,-0.5) or (0, 0.5)) you will scroll the texture in a way that what was in the center, becomes on the edge.
Your answer
Follow this Question
Related Questions
Animate Toon Water on Plane? 0 Answers
What is wrong with my shader? 1 Answer
3D Mesh Deformer in Unity3D 2 Answers
animation shader problem 0 Answers
swapping face textures for expressions? 2 Answers