Transform a shader pass to a shader

I would like to transform the shader pass below to a shader material. GitHub - felixturner/bad-tv-shader: BadTV Effect for Three.js

Is it possible, how to procede ? For me it should be easy if the shaderMaterial is applied to a plane Geometry.

I tried this transformation on this codesandbox : R3F Wavey Image Shader (forked) - CodeSandbox The only thing I did for the moment is copying the code of the shader pass into a shader material.

Thanks.