- Home /
Transition Texture or Material horizontally
Hi, Im new to Unity and I cant seem to find an answer to this. I have found a fair amount of topics on texture transitions using shaders but all examples I have seen use some sort of fade in/out approach to transitioning 2 textures on a material.
I am trying to transition a texture on a plane horizontally so that at the mid section of the transition there would be the left side of 1 texture shown and the right of another as the second texture moves across to replace the first. (If that was a bad description, imagine how some billboards scroll through multiple advertisements on a loop)
The issue with the fading methods I have seen using alpha values is that the original texture would not move to the side as the new texture enters to replace it. For example two words replaced with transparency or a similar method the word "First" would be faded over as the word "Second" appeared, however Im trying to make it so the word "First" would scroll out as "Second" came in
I had some ideas on how I could go about this but playing around with custom materials I just get lost with trying to find a solution.
The easiest solution i could think of was to have a material with two textures where the textures offsets would be changed, however I am very inexperienced with materials and shaders and cant find a default shader i can do this with. Also Im not sure if its possible to have a material be transparent when a texture is offset which this solution would require.
Any help or ideas that could lead me to understanding a solution would be appreciated.
Your answer
Follow this Question
Related Questions
Graphics Performance Question 2 Answers
Unity Materials and UV coordinate help 3 Answers
Materials: unlit transparent texture vs standard shader's albedo texture 0 Answers
How to create a shader that makes the texture look far away? 0 Answers
Changing HDRP Material's Texture At Runtime Not Working? 2 Answers