The first step of getting a Shadertoy shader into a Three.js scene, is to just get the shader working in the scene first. And then you can continue with doing it the proper way.
No-Library (pure JS), HTML, CSS, JavaScript
creating a Javascript animation with timer functions