Nvm I get it but I added a little difference however, do you think there is still better to animate this?
if (slideCoord.x < 0.0 || slideCoord.x > 1.0 || slideCoord.y < 0.0 || slideCoord.y > 1.0) {
gl_FragColor = vec4(gray,1.0);
} else {
gl_FragColor = texture2D(u_texture, slideCoord) * vec4(slideColor, 1.0);
}
this is the modification