paste this in shadertoy, might be useful for some of the scanline effects https://www.shadertoy.com/new float smootherstep(float edge0, float edge1, float x){ // Scale, and clamp x to 0..1 range x = clamp((x - edge0)/(edge1 - edge0), 0.0, 1.0); // Evaluate polynomial return x*x*x*(x*(x*6.0 - 15.0) + 10.0);}void…