Help me to port a shadertoy shader to three js

This is a fairly simple example. See Shader - Shadertoy BETA .

Try it according to the templates from the collection.

Shader 1 - ShaderExamples_C … _G , takeovers from Shadertoy

Pay attention to the notes: Little Shader Book