In this part we will learn how to add an image.
Missed Part1?
Select
// Time varying pixel color
vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4));
Paste In
// get pixel information from uv location
vec4 texColor = texture(iChannel0, uv);
Select
// Output to screen
fragColor = vec4(col,1.0);
Paste In
// Output to screen
fragColor = vec4(texColor);
Now we have an image to start filtering. In Part 3 we will Invert the colors.