Cyclic Animation Shader
Posted: Mon Mar 05, 2018 11:28 am
Hello there! I'm new to Amplify Shader Editor. I'm trying to animate a "shine" texture to pan over my metal sprites (like swords, crowns, etc...) every now and then. And that's were I'm having problems. I got exactly what I wanted, but I think my solution is super-over-convoluted. I generated an alternating sawtooth function using time, fract and a couple of remaps to make the "shine" pan over the sprite, then wait for a few seconds before repeating.
My question is: is there an easy way to have a cyclic animation in a shader and be able to control how fast the animation plays (in this case, the shine going from side to side) and how long does the gap between cycles last?
I'm sure there's something I'm missing here
Thanks in advanced!
My question is: is there an easy way to have a cyclic animation in a shader and be able to control how fast the animation plays (in this case, the shine going from side to side) and how long does the gap between cycles last?
I'm sure there's something I'm missing here
Thanks in advanced!