A question for the shader folks around here how do i get a color to flow from a point on a material to another point on that same material. kinda of like a wave of color over a material where the color is defined by a float?
one simple wave of swaying between two colors over time with a Cg shader?
Can you provide a picture or video of the effect you are looking for?
This kinda of idea but with the yellow band moving across the material based on time. And when the variable increases again it creates a second band (See Second image) that moves over the material in the same direction after the previous one… kind of like a sine wave only with a variable creating the waves…
Well i was kinda thinking along the lines of just defining two colors that way I can change them dynamically? (some kind of calculated gradient) any examples that can help me in the right direction?
Yeah thats pretty much what i’m thinking of… just the math alone blows my mind
It’s not really waves but more variable color level/lines moving across the material, just because the variable goes up and down smoothly it gives a wave idea… the width of the wave/lines is dependant on how long the variable is > 0.