creating an animated color transition effect in shader code